Hi Mini,
Thanks for using Syncfusion products.
We have achieved your requirement using actionComplete event and selectRow API in Grid. This event triggers when Grid action success. Please refer to the following code example,
|
grid.actionComplete = (args)=> {
if(args.requestType == 'paging' && grid.pageSettings.currentPage == 2){
grid.selectRow(1); //select one row based on index
} |
Note: We have pre-select the records when active page is two.
We can also select multiple records by using selectRows API in Grid. Please refer to the following code example,
|
let grid: Grid = new Grid(
{
dataSource: data,
allowPaging:true,
pageSettings:{pageSize:10},
selectionSettings: { type: 'Multiple' },
columns: [
. . .
]
});
grid.appendTo('#Grid');
grid.actionComplete = (args)=> {
if(args.requestType == 'paging' && grid.pageSettings.currentPage == 2){
grid.selectRows([2,3,4]);//select multiple row based on indexes
}
} |
We have also prepared a sample for your convenience which can be referred from following link,
If we misunderstood your requirement, then could you please provide more details about your requirement?
Regards,
Venkatesh Ayothiraman.