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. Image for the cookie policy date

TreeView AutoCheckChildNodes with ExpandMode = TreeViewNodeExpandMode.ServerSideCallback;

I have a treeview with LoadOnDemand.
I put the propertie AutoCheckChildNodes = true;

on server side :
protected void _TRV_NodeExpanded(object sender, Syncfusion.Web.UI.WebControls.Tools.TreeViewNodeEventArgs e)
{
this._RefreshNode(e.Node); //create child nodes here
}

the problem :
I have (e.Node.checked == false) anytime
I need to know the clientside checked value of the node in server.

There's who can help me ?? thanks


4 Replies

MW Melba Winshia Syncfusion Team December 3, 2007 08:26 AM UTC

Hi Faleh,

You can get the client side checked value of the node in server by accessing the "ClientSideOnNodeCheckChanged" event.

Please refer the sample in the below link which illustrates the above:

http://websamples.syncfusion.com/samples/Tools.Web/5.2.0.25/70144/main.htm

Please try this and let me know if this helps.

Thanks,
Melba




FA Faleh December 4, 2007 10:16 AM UTC

Thanks but that dont help me !!

when I check the node named : "Load on demand"
I need to load the childs nodes and set the check propertie to the same value as the parent (here : "Load on demand" node).

step 1 : I check the "load on demand" node
step 2 : I expand the node by server side callback.

I want the child nodes have the same value (checked / Unchecked) as the parent node

Thanks again !!



MW Melba Winshia Syncfusion Team December 6, 2007 10:17 AM UTC

Hi Faleh,

Thank you for the update.

I want the child nodes have the same value (checked / Unchecked) as the parent node

You cannot have child nodes as the same value while expanding the node first time, because the nodes will be created only while expanding. So after expanding the node, if you check the parent node, the child node will have the same value as parent node. If you want the child node to have the same value as parent node while expanding first time, then you have to assign the parent node value to child node while creating the node. Please refer the sample in the below link which illustrates the above:

http://websamples.syncfusion.com/samples/Tools.Web/5.2.0.25/70144_/main.htm

Please try this and let me know if this helps.

Thanks,
Melba




FA Faleh December 6, 2007 03:32 PM UTC

Hi Melba

thanks for your support !!
I found a way to resolve the problem !!

I combined the syncfusion TreeView with a ajax.dll library.

I used also the session and a property :
protected List _CheckedEntitieIDs;

I have to save in session the Value of the node checked when a "ClientsideNodeCheckChanged" event is raised.

It works well for me ...
Thanks Again !!!



Loader.
Live Chat Icon For mobile
Up arrow icon