Select a row by XML configuration

Hello,

I have to build a treegrid with a specific row selected by default.
The treegrid is configured by XML, all the parent rows have the attribute open set to “1”, and the tree is correctly opened.
I have added the “selected” attribute to the row to select, but after loading nothing is selected.
I used this : selected=“1”, and i tried selected=“true”, and it does not work.

Is there something special to do ? (init of component, etc)

Thank you in advance,

Jean

This code works correctly at local example. What version of dhtmlxTreeGrid are you using?

The version is v.2.5 build 91111

Problem can occur if selected item is inside closed branch.
You can try to add the next line to treegrids init

grid.enableSmartXMLParsing(false);