I want to be able to select/set a row in a Tree.
To do this I want to use the method:
.jqxTree(‘selectItem’,items[item].element);
It seems that the example given in http://jsfiddle.net/jqwidgets/yWBZJ/ relies on non-json type of data i.e. where the element has a specific html value.
When I use the method
var items = jQuery(peerSelector).jqxTree(‘getItems’);
where the data source is json, using the method
.jqxTree(‘selectItem’,items[item].element);
seems to break i.e. mal-function, since the .element is empty.
Can you offer any guidance on how to use the ‘selectItem’ method where the data is sourced via json?
Any guidance on this will be really appreciated!
Alastair