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

TreeViewNode ID

Thread ID:





57330 Mar 1,2007 03:29 PM UTC Mar 12,2007 12:39 PM UTC ASP.NET Web Forms (Classic) 2
Tags: Tools
Martin Kjellberg
Asked On March 1, 2007 03:29 PM UTC


I'm having problems with accessing a property in javascript. What I want to do is to use the TreeViewNode ID property instead of the TEXT property show the popupmenu, as shown in the Samples.

So instead of doing:

"Aspx page"

".js file"
function NodeOnContextMenu( oItemData )
var bShowMenu = false;
var oEvent = oItemData.Event;

switch( oItemData.Text )
case "Text"

I want to access the id property in javascript:

"Aspx page"

".js file"
function NodeOnContextMenu( oItemData )
var bShowMenu = false;
var oEvent = oItemData.Event;

switch( oItemData.ID )
case "ID"
How do i accomplish this?

Valli [Syncfusion]
Replied On March 2, 2007 12:06 PM UTC

Hi Martin,

Thanks for bringing this issue to our attention.

I am able to reproduce the issue. The TreeViewNodeId gets retrieved on the ClientSide in the 'HTMLId' format. The 'HTMLId format' are generated during the rendering of the control. For e.g. TreeViewNodeId 'InboxId' is available on the ClientSide as 'TreeView1_I3'. Here 'TreeView1_I3' is the id set to the 'Inbox' node at the design time. Actually the 'TreeView1_I3' has to be overridden by 'InboxId'.

This issue has been identified as a bug and has been internally escalated. We will provide a fix time line within 2 business days.

Meanwhile the below link is a work around sample, which may help you to resolve the issue.

I have passed the 'TreeViewNodeId' as an attribute to the 'ClientOnItemSelect' function, which holds the Id value as a global value. This global value can be used in the 'ClientSideOnContextMenu' function , so that the Context Menu gets displayed on the TreeView Node based on its Id.


Please try running the sample and let me know about if you need more assistance, we will be glad to assist you.

Thanks for using Syncfusion products.


Administrator [Syncfusion]
Replied On March 12, 2007 12:39 PM UTC

Hi Martin,

Sorry for the delay in getting back to you.

This defect has been forwarded to our developers. We will update you with the fix for this issue on or before April4th, 2007. You can keep track of the progess of the defect from the below link


Thanks & Regards,


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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