CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

Select Row by Code in TreeView

by buko » 02 May 2016 14:42

How can I select the first row in a TreeView by code
buko
 
Posts: 3
Joined: 21 Jan 2016 00:18

by Alexander Bulei » 02 May 2016 14:57

Hi,

What do you mean by select?

Check/highlight/expand?

Best Regards.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by buko » 02 May 2016 20:56

highlight
buko
 
Posts: 3
Joined: 21 Jan 2016 00:18

by Alexander Bulei » 03 May 2016 10:28

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.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal


Return to JQTreeView

Who is online

Users browsing this forum: No registered users and 1 guest

Contact Us.