mercredi 11 avril 2018

Uncheck checkbox in same row kendo grid at button press

I have a Kendo Grid with multiple columns.

@(Html.Kendo().Grid<GridViewModel>()
                  .Name("Docgrid")
                  .Columns(columns =>
                  {
                      columns.Bound(c => c.read).Template("<input type='checkbox' #= IsUnread ? checked='checked': '' # class='chkbx' />");
/* some more columns */
                      columns.Command(cmd =>{cmd.Custom("Download").Click("download");});

When I press the Downloadbutton I want to unselect the checkbox in the same grid row.

right now I only managed to unselect all checkboxes

Check/uncheck a checkbox in the table row when any checkbox in the same row is clicked I found this but I wasn't able to adapt it to my needs using a button.

 $("#Download").click(function () {
    $("input[type='checkbox']").prop('checked', false);
});




Aucun commentaire:

Enregistrer un commentaire