Hi,
My scenario is selecting default record(First record) after deletion in bryntum grid.
But when i deleting first record and selecting record next to it is not working .Other record deletion and selecting first records is working fine .Kindly help me out.
Support Forum
Hello thejas.pateel,
You can achieve that for all your scenarios with the following configuration:
const grid = new Grid({
project : {
//... other configuration
store : {
listeners : {
remove : ({ source }) => {
// Add timeout to wait for the animation to complete
setTimeout(() => {
// Select always the first record
grid.selectRows(source.records[0]);
}, 50);
}
}
},
},
Best regards,
Márcio