Our blazing fast Grid component built with pure JavaScript


Post by thejas.pateel »

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.

delete2.jpg
delete2.jpg (23.4 KiB) Viewed 472 times

Post by marcio »

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


Post by thejas.pateel »

Its works thanks


Post Reply