How to implement a right-click option in an ASP.NET Treeview

I have a tree showing categories and subcategories. I need to right click to add subcategories and products for a specific category or subcategory.

I want, suppose I choose treenode showing a category or subcategory. When I right-click on treenode, you will see a context menu with the parameters - Add subcategory, Add product, Delete this category, Change this category. When I click on one of the menu items, it opens a pop-up window for adding / editing / deleting a category or adding a product.

I hope you understand my problem. please, help.

Thanks in advance.

+3
source share
3 answers

This is quite complicated, so if you don’t know what you are doing, you will be better off working with a third-party component that already right-clicks.

eg.

http://aspnetajax.componentart.com/control-specific/treeview/features/node_contextMenus/WebForm1.aspx

+1
source

I found FlyTreeView solution for ASP.NET (version 2.0, 3.0, 3.5) in this Link

Thank you all for your time.

+2
source

jQuery jContext. , - ASP.NET.

html, treeview.

For example, web forms control the rendering of html elements with an identifier attribute, which can vary depending on many factors. So your javascript code will have to reference these elements in a different way than usual:

$('#<%=someControl.ClientID %>').whatever();
0
source

Source: https://habr.com/ru/post/1718458/


All Articles