Wednesday, 14 August 2013

Kendo UI Grid Row Template Command

Kendo UI Grid Row Template Command

I'm having requirement in KendoUI Grid where I have first column as
Command template for checkbox,so on its onclick event I want to get value
and ids of all the columns of same selected row. below is the column
section of my grid
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" }
]
I have also attached a screenshot for more detail, please let me know how
it can be done.

No comments:

Post a Comment