Hi,
I am using Treeview control to create Folder and file structure functionality. I have added context Menu to show New Folder option while right clicking on the Node item. I want to disable the New Folder for the file level.
case "NewFolder":
if (treeNode.get_parent() == treeNode.get_treeView())
{
menuItem.set_enabled(
true);
}
else
{
menuItem.set_enabled(
true);
}
break;
Thanks,
Krantikumar Jain