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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Retrieving UniqueID from TreeView node on click

Thread ID:

Created:

Updated:

Platform:

Replies:

91124 Nov 4,2009 07:52 PM UTC Nov 6,2009 04:47 AM UTC ASP.NET MVC (Classic) 1
loading
Tags: Tools
Bob Uva
Asked On November 4, 2009 07:52 PM UTC

When I build a TreeViewModel in my controller, I set each TreeNodeItem's UniqueID to a value that will help me identify what item has been clicked on in the tree view. If I expand a node, I can see that the correct UniqueID value is picked up by the ClientSideOnNodeExpand handler. However, if I just click on a node (without expanding), I don't get the UniqueID, I just get the text of the item. I've tried changing the ClientSideOnNodeClick handler to get the unique Id but not sure how to do this. Here's what I've got in that handler:

function ClientSideNodeClick(sender) {

$('#EventLog').val($('#EventLog').val() + sender.nodeText + " Node is Selected" + "\n");
sender._handled = true;
}

The handler for expand looks similar (except it uses 'args' instead of 'sender' as the parameter name:

function ClientsideExpand(args) {

$('#EventLog').val($('#EventLog').val() + args.nodeText + " Node is Expanded" + "\n");
args._handled = true;
}

Why do I get different results from these two events? I want to get the UniqueID in both cases.

Bob

Santhosh Kumar A [Syncfusion]
Replied On November 6, 2009 04:47 AM UTC

Hi Bob,

Thanks for your interest in Syncfusion products.

Please create an DT incident for your query so that we can update with the patch available.

You can create the DT incident from the following link.
http://www.syncfusion.com/account/dashboard

In the interests of maintaining confidentiality, we have a policy of not sharing patches or otherwise proprietary customer specific information in the public Forum.

Best Regards,
Santhosh Kumar.A

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

;