AdvanceDataGrid节点在刷新时崩溃 [英] AdvanceDataGrid nodes collapse on refresh

查看:79
本文介绍了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!

推荐答案

我尝试避开该组件。我认为您最好的选择是扩展它并实现所需的功能(您可能最终会重写大量的逻辑来获得所需的内容)。

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).

您已经知道您可以利用openNodes属性...

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.

这篇关于AdvanceDataGrid节点在刷新时崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆