如何从< a href>加载剑道菜单标记在下面的代码中。只是复制&在您的项目上粘贴源代码 [英] How to load kendo menu from <a href > tag in below code.Just copy & paste source code on your project

查看:96
本文介绍了如何从< a href>加载剑道菜单标记在下面的代码中。只是复制&在您的项目上粘贴源代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

例如: http://demo.easyquerybuilder.com/asp-net-mvc/ [< a href =http://demo.easyquerybuilder.com/asp-net-mvc/target =_ blanktitle =New Window> ^ ]



@(Html.Kendo()。菜单()

.Name(菜单)

.Items(items =>

{

items.Add()

。文本(客户)

。项目(儿童=>

{

children.Add()。文字(公司名称)

。项目(innerChildren =>

{



innerChildren.Add()。文字(公司ID);



}) ;

});

})

。活动(e => e.Open(open)。关闭(关闭)。选择( 选择 )。激活( 一ctivate)。停用(停用))





< label for =myaluestyle =vertical-align :mid>< / label>







< style>

#menu h2 {

font-size:1em;

text-transform:uppercase;

padding:5px 10px; < br $>
}



#template img {

保证金:5px 20px 0 0;

float:left;

}



#template {

宽度:380px;

}



#template ol {

float:left;

margin:0;

填充:10px 10px 0 10px;

}



#template:在{
$ b $之后b内容:。;

显示:阻止;

身高:0;

清除:两者;

vi sibility:hidden;

}



#template .k-button {

float:left;

清除:左;

保证金:5px 0 5px 12px;

}

< / style>





< script>



var intCount = 0;

var items = new Array();

函数select(e){





items [intCount] = $(e.item).children(。k-link)。text();

debugger;

// alert(items) ;

intCount = intCount + 1;

jQuery(label [for ='myalue'])。html('select'+''+项目+''+''+''+''+'< input type =textvalue =>开头;');

//jQuery(\"label[for='myalue']\").html('Select'+ items +'

    Ex:http://demo.easyquerybuilder.com/asp-net-mvc/[^]

    @(Html.Kendo().Menu()
    .Name("Menu")
    .Items(items =>
    {
    items.Add()
    .Text("Customer")
    .Items(children =>
    {
    children.Add().Text("Company Name")
    .Items(innerChildren =>
    {

    innerChildren.Add().Text("Company Id");

    });
    });
    })
    .Events(e => e.Open("open").Close("close").Select("select").Activate("activate").Deactivate("deactivate"))
    )

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



    <style>
    #menu h2 {
    font-size: 1em;
    text-transform: uppercase;
    padding: 5px 10px;
    }

    #template img {
    margin: 5px 20px 0 0;
    float: left;
    }

    #template {
    width: 380px;
    }

    #template ol {
    float: left;
    margin: 0;
    padding: 10px 10px 0 10px;
    }

    #template:after {
    content: ".";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
    }

    #template .k-button {
    float: left;
    clear: left;
    margin: 5px 0 5px 12px;
    }
    </style>


    <script>

    var intCount = 0;
    var items = new Array();
    function select(e) {


    items[intCount] = $(e.item).children(".k-link").text();
    debugger;
    //alert(items);
    intCount = intCount + 1;
    jQuery("label[for='myalue']").html('Select ' + '' + items + ' ' + ' ' + 'starts with' + '' + '<input type="text" value="" >');
    //jQuery("label[for='myalue']").html('Select '+ items + '

      推荐答案

      (e.item).children(。k-link)。text();

      debugger;

      // alert(items);

      intCount = intCount + 1;

      jQuery(label [for ='myalue'])。 html('选择'+''+ items +''+''+''+'开头+'+' < input type =textvalue =>');

      //jQuery(\"label[for='myalue']\").html('Select'+ items +'
      (e.item).children(".k-link").text();
      debugger;
      //alert(items);
      intCount = intCount + 1;
      jQuery("label[for='myalue']").html('Select ' + '' + items + ' ' + ' ' + 'starts with' + '' + '<input type="text" value="" >');
      //jQuery("label[for='myalue']").html('Select '+ items + '


        这篇关于如何从&lt; a href&gt;加载剑道菜单标记在下面的代码中。只是复制&amp;在您的项目上粘贴源代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

    查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆