EasyUI之combogrid


html代码:

<div class="item-label">@Html.L("Name"):</div>
<input id="Id" name="Id" value="">

页面加载后绑定数据源:

$(function ()
{
$('#Id').combogrid({
panelWidth:450,
idField:'Id',
textField:'Name',
url:'/Contact/Default/List',
columns:[[
{ field: 'Id' , title: 'Id' , width: 60, hidden:true },
{ field: 'Name' , title: 'NameLabel' , width: 120,sortable:true },
{ field: 'Country' , title: 'CountryLabel' , width: 100,sortable:true }
]]
});
});

效果如图:

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM