CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

Working with TIWCGJQTreeView

by loufeliz » 02 May 2019 22:18

I have simple code below. The items are added to tree , my button caption reflect sthe value I am expecting, but I do not see the items.

JQTree1: TIWCGJQTreeView; on form with one item (which sows at runtime)

var
treenode: TIWCGJQTreeViewItem;
begin
JQTree1.JQTreeViewOptions.UIPlugin.PluginActive := True;

treenode := jqtree1.TreeNodes.Add;
treenode.Caption := '123';
treenode := jqtree1.TreeNodes.Add;
treenode.Caption := ' 456';
treenode := jqtree1.TreeNodes.Add;
treenode.Caption := ' 789';
treenode := jqtree1.TreeNodes.Add;
treenode.Caption := ' 012';
jqtree1.Refresh;
JQTree1.Repaint;
JQTree1.JQTreeViewOptions.UIPlugin.Refresh;
IWCGJQButton2.Caption := IntTostr(jqtree1.TreeNodes.Count);

Additional items added do not display..... Any ideas on what I am doing wrong?


XE3 / IW 14.2.7 / CG Dev 4.1.50
loufeliz
 
Posts: 61
Joined: 01 Dec 2012 04:39

by loufeliz » 03 May 2019 08:04

Okay I just need to call RenderRegionAsync(IWFrameRegion,rramLazyLoadMethod,True); and all is well.
loufeliz
 
Posts: 61
Joined: 01 Dec 2012 04:39


Return to JQTreeView

Who is online

Users browsing this forum: No registered users and 1 guest

Contact Us.