Has the behavior of RadTreeViewItem.ExpandItemByPath() changed on purpose? I used to expand a node followed by \\, but now it doesn't want the trailing \\.
Tim
2 Answers, 1 is accepted
0
Miroslav
Telerik team
answered on 18 Jan 2010, 02:48 PM
Hello Tim,
The ExpandItemByPath method was changed in order to differentiate the GetItemByPath and ExpandItemByPath methods.
The GetItemByPath is synchronous while the ExpandItemByPath used not to be. This is why the ExpandItemByPath does not return the item it expands.
With the Q3 release (and some time before that) the ExpandItemByPath method updates the layout eagerly just like GetItemByPath (it uses it internally in fact) and there was not much difference between the methods.
Is this a breaking change for you?
Would you prefer if the method worked as before?
No -- I fixed my side. The change apparently is the trailing \\. I changed my algorithm to add \\ only between nodes and omit the trailing \\ and it works again. Not sure if you were aware of this or not, but maybe it will help someone else with a forum search.
My app has a tree of categories on the left, and objects of each category below that. In the category view, there is a grid summarizing all objects of that category. Double-clicking on the row expands the tree and selects the specific item, causing navigation to the detail view for that item as if the user had gone straight to the tree. Double clicking calls ExpandItemByPath which changed on me.