During user operations, we refresh the datasource contents and reload the treelist. If our users have a row selected, we need to reselect that row. If a child row was last selected, we need to expand its parent and select the child. I've looked through the docs, but all it shows is how to select a row based on the index; I also see nothing on how to expand the parent of a child row.
You can see my code in this dojo: http://dojo.telerik.com/epOQe/3
After running it, select a row and then click the Refresh button; the point is that the selected row should be selected after the refresh *and* if be visible (e.g., if it's a child node, the parent should be expanded as well). The selected row remains selected, but if it's a child row, the parent row won't be expanded. (I based this off the code found here.)
So my questions are thus:
1) Why won't the parent row expand?
2) Is there a way to automatically expand the parent when a child is selected?
Any guidance would be greatly appreciated!