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.
Unfortunately, activation email could not send to your email. Please try again.

TreeView AutoCheckChildNodes with ExpandMode = TreeViewNodeExpandMode.ServerSideCallback;

Thread ID:

Created:

Updated:

Platform:

Replies:

70144 Nov 29,2007 04:07 AM Dec 6,2007 10:32 AM ASP.NET Web Forms (Classic) 4
loading
Tags: Tools
Faleh
Asked On November 29, 2007 04:07 AM

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


Melba Winshia [Syncfusion]
Replied On December 3, 2007 03:26 AM

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



Faleh
Replied On December 4, 2007 05:16 AM

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 !!


Melba Winshia [Syncfusion]
Replied On December 6, 2007 05:17 AM

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



Faleh
Replied On December 6, 2007 10:32 AM

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 !!!



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.

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.

;