Click here to Skip to main content
15,905,967 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
C#
@(Html.Kendo().Menu()
      .Name("Menu")
      .Items(items =>
      {
          items.Add()
              .Text("Products")
              .Items(children =>
               {
                   children.Add().Text("Furniture")
                           .Items(innerChildren =>
                           {
                               
                               innerChildren.Add().Text("Beds");
                           });

                   children.Add().Text("Decor")
                           .Items(innerChildren =>
                           {
                               
                               innerChildren.Add().Text("Carpets");
                           });

                   children.Add().Text("Storage")
                           .Items(innerChildren =>
                           {
                               
                               innerChildren.Add().Text("Boxes");
                           });

                   children.Add().Text("Lights")
                           .Items(innerChildren =>
                           {
                               
                               innerChildren.Add().Text("String Lights");
                           });
               });
      })
      .Events(e => e.Open("open").Close("close").Select("select").Activate("activate").Deactivate("deactivate"))
    )


label for="myalue" style="vertical-align: middle"></label>

JS:
JavaScript
function select(e) {
        //kendoConsole.log("Selected: " + $(e.item).children(".k-link").text());
        var sSelectedText = $(e.item).children(".k-link").text();
        //alert(sSelectedText)
        jQuery("label[for='myalue']").html(sSelectedText);
    }

Ex link i want like http://demo.easyquerybuilder.com/asp-net-mvc/[^]


http://odyniec.net/articles/multiple-select-fields/[^]
Posted
Updated 21-Dec-15 2:36am
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900