I use jstree in my application, that I programmed it with asp.net MVC5 C#.
I want when clicking in any node of treeview a modal or a form appears.
thanks
- <input id="search-input" class="search-input" />
- <br /><br />
- <div class="form-body">
- <div id="jstree">
- @(Html.TreeView(Model)
- .EmptyContent("COURRIERS")
- .Children(m => m.Childs)
- .HtmlAttributes(new { id = "tree" })
- .ChildrenHtmlAttributes(new { @class = "subItem" })
- .ItemText(m => m.Designation)
- .ItemTemplate(
- @<text>
- <a href="@item.Description" desc="@item.Description">@item.IdTypeCourrier - @item.Designation </a>
- </text>)
- )
- </div>
- </div>