SupportNodeImages in GridTreeControl

Hello
I have a problem about GridTreeControl.
I set the GridTreeControl support node images like that:
treeGrid.SupportNodeImages = true;
treeGrid.RequestNodeImage += new GridTreeRequestNodeImageHandler(treeGrid_RequestNodeImage);

I add a node like that:
GridTreeNode node = new GridTreeNode(0, null, true, null);
treeGrid.InternalGrid.Nodes.Add(node);
treeGrid.InternalGrid.ResetGrid();

Then a exception occurs:
System.NullReferenceException was unhandled
Message="Object reference not set to an instance of an object."
Source="Syncfusion.Grid.WPF"

I hope the GridTreeControl support node images and I don't want to change the way that I add node. Is there any way to solve it?

Best regards
J.T

2 Replies

J. J.T April 21, 2010 03:22 PM UTC

Hello:
Our project is a little special, so it is not comfortable to add data by using the "RequestTreeItems" event. Then I try to add data by add node in "grid.InternalGrid.Nodes", but there are some problem occurs, please see the Attachment

Best regards
J.T




Problem aobut add node_108b58b.rar


KV Karthik Vishnu R Syncfusion Team April 26, 2010 11:18 AM UTC

Hi J.T,

Rendering plus minus nodes seems to bae a small bugin our implementation. Please create Direct Trac Incident with the forum title as header. We will update you with a patch that will resolve these issues.

Regards,
Karthik

Loader.
Up arrow icon