Devexpress Xtratreelist-聚焦节点不可见的问题 [英] Devexpress Xtratreelist - Problem with focusing node that is invisible

查看:141
本文介绍了Devexpress Xtratreelist-聚焦节点不可见的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在窗口窗体上有devexpress xtralist.现在,当该树变满时,树上的某些节点将不可见.

I have devexpress xtralist on window form. Now when that tree becomes full that is some nodes are not visible there on tree.

如果我们手动滚动,则看不见的节点将是可见的,但是问题是如果我们一按向下箭头键并到达树中的最后一个可见节点,然后再次按向下箭头键并到达该节点是不可见的,然后到达该节点,应用程序将崩溃.并且存在索引超出绑定数组的错误.

And if we scroll manually then that invisible nodes will be visible, but problem is if we press down arrow key one by one and reaches to last visible node in the tree and then again press down arrow key and reaches to the node which is not visible then reaching to that node the application goes to crash. And there is an error that index is out of bound array.

如果我们通过手动向下滚动使不可见的节点可见并按下键,则没有问题.但是,如果那些节点是不可见的,并且如果我们尝试聚焦于该节点,那么就会有问题.

And if we make that invisible nodes visible by doing scrolling down manually and that press down key then there is no problem. But if that nodes are invisible and if we try to focus that node then there is problem.

所以我不明白如何解决这个问题?有人知道吗?

So I cannot understand how to solve this ? Anyone does know about this ?

推荐答案

我还不清楚什么.但是这样做可以解决问题.

What that is I have not understood yet. But problem is solved by doing this.

TreeList1.MakeNodeVisible(e.Node.Nodes.LastNode);

现在它不会崩溃,并且到达树中的最后一个节点时会自动滚动.

Now it does not crash and automatically scrolling is done when reaches to last node in the tree.

这是我在这里看到的: http://community.devexpress.com/forums/p/81048/304362.aspx

This was seen to me here: http://community.devexpress.com/forums/p/81048/304362.aspx

这篇关于Devexpress Xtratreelist-聚焦节点不可见的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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