Hi,
How do I prevent expanding and collapsing tree items when they are double clicked? I want items to expand and collapse only when the expansion indicator is clicked.
Thanks!
Hello Indira,
It has been a while since you have made your post, in case you still need support I will be glad to assist you further. I suppose the other community members can benefit from this answer as well. I have been looking into your post, but it seems like that I am missing something in your scenario, so if this is still an issue for you, could you please send an isolated sample project, where the issue is reproduced, so I can investigate it further for you.
Feel free to write me if you have further questions.
Hi, I have problem to Prohibiting collapsing of table. System shall have the ability to prohibit the collapsing of the Table once the user expands the table in screen. Ex: once user expands the grid,add a new row to grid. once this new row added to DB and this new reflected in grid(grid should be refreshed with updated Db values) with out collapsing grid.
Thanks guys!
Tore,
I submitted a feature request for you. If your feature is chosen for development you will be notified at that time. Your reference number for this feature request is FR12480.
Thank you for your request.
Sam
As Darrell suggested, I will submit a feature request for you.
There is one imperfect workaround if you consider using it, and that is to check the IsSelected item in ItemExpansionChanging event.
The imperfection is that the item is selected with single and double click, but clicking on expansion indicatior does not make a selection so you may be able to use the following code:
XamWebTreeItem item = e.SourceItem as XamWebTreeItem; if (e.IsExpanded) { if (item.IsSelected) { e.Cancel = true; } } else { if (item.IsSelected) { e.Cancel = true; } }
Also, when the item is expanded with expantion indicator and selected, (the else code) prevents it from collapsing. That may be anoying for the user. You may have to click some other item and then collaps by expansion indicator.
Let me know if this works for you.