Hi
I have grid with checkboxes. I want to render that grid with multiple rows selection
This is Grid, but selection is not happening.
ts code:-
ShowSelectedRoleRows(UserRoleTags) {
debugger;
let indexs: number[] = [];
if (UserRoleTags != null) {
for (let i = 0; i < UserRoleTags.length; i++) {
(this.RoleGrid.dataSource as object[]).forEach((sdata, index) => {
if (sdata["Id"] === UserRoleTags[i]['RoleId']) {
indexs.push(index);
}
});
}
this.RoleGrid.selectionModule.selectRows(indexs);
//this.selectedRowIndex = [0, 1, 2];
}
Kindly do needful.