We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

SupportNodeImages in GridTreeControl

Thread ID:

Created:

Updated:

Platform:

Replies:

94057 Apr 20,2010 11:30 AM UTC Apr 26,2010 11:18 AM UTC WPF 2
loading
Tags: GridControl
J.T
Asked On April 20, 2010 11:30 AM UTC

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

J.T
Replied On 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

Karthik Vishnu R [Syncfusion]
Replied On 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

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;