AdvanceDataGrid 节点在刷新时崩溃
我有一个 AdvancedDataGrid,我正在尝试使用来自 Web 服务的数据进行更新,我每 10 秒轮询一次。我使用 HierarchicalData 对象向网格提供数据。更新似乎工作正常,除了在每次更新时,刷新网格时展开的任何节点都会折叠。更奇怪的是,当我深入研究事物的内部并查看支持网格的 HierarchicalCollectionView 的内容时,我可以看到 openNodes 属性正确包含我打开的节点,但这些节点未显示为打开网格...状态似乎不一致。任何帮助将不胜感激!
I have an AdvancedDataGrid which Im attemping to update with data from a web service that I poll once very 10 seconds. Im using a HierarchicalData object to provide data to the grid. The update seems to work fine, except that on each update, any nodes that were expanded are collapsed when the grid is refreshed. Stranger still, when I dig down into the bowels of the thing and look at the contents of the HierarchicalCollectionView that backs the grid, I can see that the openNodes property correctly contains the nodes that I opened, but those nodes are not shown as open on the grid...the state seems inconsistent. Any help would be much appreciated!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我尝试避开该组件。我认为最好的选择是扩展它并实现您需要的功能(您可能最终会覆盖大量逻辑来获得您需要的功能)。
您已经知道可以利用 openNodes 属性...
我知道这个答案不会立即帮助您,但如果您花时间推出自己的组件,您稍后会感谢自己。
I try and steer clear of that component. I think your best bet is to extend it and implement the functionality you need (you will probably end up overriding a good amount of logic to get what you need).
You already know that you can utilize the openNodes property...
I know this answer doesn't help you immediately, but you will thank yourself later if you take the time to roll out your own component.