【发布时间】:2013-08-14 11:18:16
【问题描述】:
我在 KendoUI Grid 中有要求,我有第一列作为checkbox 的命令模板,因此在其onclick 事件中,我想获取同一选定行的所有列的值和 ID。下面是我的网格的列部分
columns: [
{command: "", template: '<input type="checkbox" id="check-all" onclick="chkboxclicked(this)"/>', width: "15" },
{ field: "Hours", template: '<input type="textbox" id="txthours" style="width:70px;"/>', width: "30" },
{ field: "OT Hours", template: '<input type="textbox" id="txtOThours" style="width:70px;"/>', width: "30" },
{ field: "SkillName", title: "Skill", width: "50" },
{ field: "UserName", title: "Technician", width: "65" },
{ field: "StartTimeString", template: '<input type="datetime" id="txtLaborstartdate" style="width:200px;"/>', title: "Start Date time", width: "75" },
{ field: "EndTimeString", template: '<input type="datetime" id="txtLaborEnddate" style="width:200px;"/>', title: "End Date time", width: "75" }
]
我还附上了screenshot以获取更多详细信息,请告诉我如何完成。
【问题讨论】:
标签: jquery asp.net html kendo-ui kendo-grid