Finally Find the solution
Changes the grid created method as
function GridCreated(sender, eventArgs) {
var masterTable = sender.get_masterTableView();
//traverse stored id's
$jQuery.each(selected, function (i) {
//traverse gridrows for id's
$jQuery.each(masterTable.get_dataItems(), function (j) {
// if it maches then make checkbox selected.
if ((masterTable.get_dataItems()[j].getDataKeyValue("CaseInfoID") == i)) {
//changed How to find the Current row
var currentrow = masterTable.get_dataItems()[j].get_cell("CheckBoxTemplateColumn").firstElementChild.firstElementChild;
//Then to check it.
currentrow.checked = true;
return false;
}
});
});
}