I have a column template
columns.Template(@<text></text>).ClientTemplate("<input type='checkbox' class='checkbox'/>").Title("<input type='checkbox'/>").Width(10).Title("Izbor").HtmlAttributes(new { @onclick = "click", style = "align:center;float:none;text-align:center; font-size:12px; vertical-align: middle;" }).HeaderHtmlAttributes(new { style = "overflow: visible; white-space: normal; text-align:center; font-size:12px; font-weight: bold;" });
I select rows with code
function onDataBound(e) {
$(".checkbox").bind("change", function(e) {
$(e.target).closest("tr").toggleClass("k-state-selected");
})
}
How can I select a certain column (eg. Ids) from grid and pass them to controller?
Thank you!
Aucun commentaire:
Enregistrer un commentaire