The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
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?
VAValli Syncfusion Team 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.
Regards, Valli
ADAdministrator Syncfusion Team 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