如何在kendo网格中选择行 [英] how to select row in kendo grid
本文介绍了如何在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
解决方案
(document).ready(function(){
var用户;
(#grid2)。kendoGrid({
dataSource:{data:users,pageSize:10} //绑定数据
,pageable:true
,列:[
{field:CoachID,隐藏:true}
,{field:SportsName,title:SportsName}
,{field:FirstName,title:Name}
],
可选:row,
});
(#grid2)。on(click,function(){
location.href ='/ Coaches / Create /';
});
i我是新的mvc ...
问候
AR
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
解决方案
(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网格中选择行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文