Page 1 of 1

Select Row by Code in TreeView

PostPosted: 02 May 2016 14:42
by buko
How can I select the first row in a TreeView by code

Re: Select Row by Code in TreeView

PostPosted: 02 May 2016 14:57
by Alexander Bulei
Hi,

What do you mean by select?

Check/highlight/expand?

Best Regards.

Re: Select Row by Code in TreeView

PostPosted: 02 May 2016 20:56
by buko
highlight

Re: Select Row by Code in TreeView

PostPosted: 03 May 2016 10:28
by Alexander Bulei
Hi,

First, you need activate the UIPlugin:

delphi code
IWCGJQTreeView1.JQTreeViewOptions.UIPlugin.PluginActive:= True;


Then, if you want select on start/load, use the InitiallySelect property:

delphi code
IWCGJQTreeView1.JQTreeViewOptions.UIPlugin.InitiallySelect.Add('node_uniquename');


If you want select on some event, use the method:

delphi code
IWCGJQTreeView1.JQTreeViewOptions.UIPlugin.SelectNode('node_uniquename');


Best Regards.