This is a migrated thread and some comments may be shown as answers.

Uncheck the Already Selected Check Boxes in Telerik Grid

1 Answer 52 Views
ListBox
This is a migrated thread and some comments may be shown as answers.
sri
Top achievements
Rank 1
sri asked on 21 Apr 2012, 01:16 PM

In telerik gridview,  i am having checkbox, preview button, description button in each row of telerik grid once i select some checkboxes and hits download button i want to uncheck all the checkboxes that were checked earlier in the grid. is there any way in javascript  or telerik functionality to uncheck all the checkboxes after hitting download button

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 23 Apr 2012, 07:34 AM
Hello Sri,

Try the following code.
JS:
function uncheck()
{
  var masterTable = $find("<%= Radgrid1.ClientID %>").get_masterTableView();
  var row = masterTable.get_dataItems();
  for (var i = 0; i < row.length; i++)
  {
   masterTable.get_dataItems()[i].set_selected(false);
  }
}

Thanks,
Princy.
Tags
ListBox
Asked by
sri
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or