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

TreeViewNode ID

Thread ID:

Created:

Updated:

Platform:

Replies:

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

Hi

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.

http://websamples.syncfusion.com/samples/Tools.Web/4.4.0.51/F57330/main.htm

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.

Regards,
Valli

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

http://www.syncfusion.com/support/issues/tools/Default.aspx?ToDo=view&questId=3756

Thanks & Regards,
Sharmila

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

;