本文介绍了如何在kendo网格中选择行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
i想要在点击网格行时获得coachId ...
如何获取coachid以及如何将值传递给控制器.. 。
$(document).ready(function(){
var users;
$(#grid2) .kendoGrid({
dataSource:{data:users,pageSize:10} //绑定数据
,pageable:true
,columns:[
{field:CoachID, hidden:true}
,{field:SportsName,title:SportsName}
,{field:FirstName,title:Name}
],
可选择:row,
});
$(#grid2)。on(click,function(){
location.href ='/ Coaches / Create /' ;
});
i我是mvc的新手...
问候
AR
解决方案
(#grid2)。kendoGrid({
dataSource:{data:users,pageSize:10} //绑定数据
,pageable:true
,列:[
{field:CoachID,隐藏:true}
,{field:SportsName,title:SportsName}
,{field:FirstName,title:Name}
],
可选:row,
});
hi,
i want to get the coachId when clicking on the row of grid...
how get the coachid and how to pass the value to controller...
$(document).ready(function () { var users; $("#grid2").kendoGrid({ dataSource: { data: users, pageSize: 10 }// binding data , pageable: true , columns: [ { field: "CoachID", hidden: true } , { field: "SportsName", title: "SportsName" } , { field: "FirstName", title: "Name" } ], selectable: "row", }); $("#grid2").on("click", function () { location.href = '/Coaches/Create/'; });
i am new in mvc...
Regards
AR
解决方案
这篇关于如何在kendo网格中选择行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!