问题标签 [advanceddatagrid]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
4 回答
19101 浏览

apache-flex - Flex:以编程方式展开 AdvancedDataGrid 树列

有谁知道如何以编程方式扩展 Flex 中 AdvancedDataGrid 树列的节点?如果我使用的是一棵树,我会使用这样的东西:

但我似乎无权访问 AdvancedDataGrid 中的此属性。

0 投票
1 回答
3657 浏览

apache-flex - 格式化 AdvancedDataGrid 单元格

我有一个关于渲染高级数据网格单元格的快速问题。

我需要根据条件以编程方式为数据网格的单元格着色。比方说,股票报价。如果比前一天增加,我需要在减少时将单元格涂成绿色和红色。

现在,重要的部分是,我需要动态地做这些事情,这意味着,当用户启用比较/条件时,单元格就会被着色。当用户禁用比较时,它会再次回到默认行为。

我知道我必须使用渲染器。但不确定,如何将它用于单元格,并且过于动态。谁能解释一下如何去做?

谢谢

0 投票
2 回答
2667 浏览

apache-flex - AdvancedDataGrid SummryRow

One update: I tried using the SummaryRow on the datagrid for its basic functionalities and it is working. Now, I need to embed the text in the summary fields. E.g. If one of my summaryfields returns me the count then it should be able to display 'TOTAL (count)'

Is it possible with the summaryrow?

Also, I need to have the data to be formatted when it is displayed. e.g. %age, like 50%, 0.1%, etc.

Is this also possible?

Hi, One quick question. I have an AdvancedDataGrid. I need to add a summaryrow to the grid which will contain SUM/AVERAGE of the respective columns in the ADG. Can anyone point me to some tutorial or any reference where I can learn how to create a summaryrow? Thanks!

0 投票
1 回答
877 浏览

apache-flex - AdvancedDataGrid LockedRowCount 不起作用

我正在尝试锁定我的 ADG 中的第一行。第一行是 SummaryRow。当我将lockedRowCount 属性设置为1 时,它仍然不会冻结第一行。我尝试了不同的数字,但它仍然无法正常工作。实际上,当我尝试跟踪lockedRowCount 的值时,它会将其跟踪为0。任何人都可以提供有关如何使用lockedRowCount 属性执行此操作的建议,或者如果您可以为我提供另一种解决方法,那就太好了。

谢谢 :)

0 投票
1 回答
548 浏览

data-binding - 如何为网格中的列设置两个值

我们正在为我们的 Web 应用程序使用 AspXGridView devXgrid。我必须为网格中的一列分配两个值(id,value)。我怎样才能做到这一点?

谢谢,P.Gopalakrishnan。

0 投票
2 回答
2544 浏览

apache-flex - Flex/actionscript:在 AdvancedDataGrid 上使用 dataDescriptor

我有一个分层数据集,我想在高级数据网格中显示。我的数据是一组不使用“children”属性的组合值对象。在 Tree 控件上,您可以创建自定义 dataDescriptor 来定义哪些元素包含节点的子节点。这也可以在数据网格上完成吗?

0 投票
1 回答
973 浏览

apache-flex - Flex AdvancedDataGrid 数据绑定完成事件

Flex 中是否有某种方法可以告诉我何时所有数据都已完成绑定到我的 AdvancedDataGrid?我有一堆运行的标签函数,在填充网格时我需要一个繁忙的光标。然后我想在完成后将其删除。并且还触发了另一个事件。

谢谢,

马丁

0 投票
1 回答
1086 浏览

apache-flex - Flex AdvancedDataGrid 缓存记录

我有一个绑定到 ArrayCollection 的 AdvancedDataGrid(ADG)。ArrayCollection 是从我的 Oracle 数据库中填充的。现在,我在数据库中的记录数以百万计,有时,根据用户的最坏情况标准,我可以获得大约 10,000 条记录。现在,由于此集合绑定到 ADG,它会尝试同时呈现所有记录,因此应用程序变得缓慢。

我需要知道的是,是否有任何方法可以将数据库中的所有结果缓存在 ArrayCollection 中,然后根据网格的滚动呈现每 100 条记录。也就是说,仅在需要显示时才渲染。因此,我需要在需要显示每 100 条记录时渲染每 100 条记录,而不是查询数据库。

有什么办法可以这样做吗?

谢谢 :)

0 投票
2 回答
5768 浏览

apache-flex - Flex AdvancedDataGrid 树自定义拖动

我想在 AdvancedDataGrid 树结构上实现自定义拖动,它只允许在树枝(而不是叶子)上拖动。

我遇到了很多困难,尝试使用 MouseDown 事件,但没有运气!

好的,我想我已经让 mousedown 能够确定该项目是否是叶子的分支。有关如何使用高级数据网格执行自定义拖动的任何帮助?

0 投票
1 回答
984 浏览

flash - 如何以编程方式移动 Flex 3 AdvancedDataGrid 中的项目?

有没有办法在 AdvancedDataGrid 中移动一行以响应外部事件?在这种情况下,我想要一个工具栏按钮,可以向上或向下移动网格中选定的一个或多个项目。我看到的问题是使分层数据源与网格上的项目渲染器和选择数据数组保持同步。