Page 1 of 1

[VUE 2] Selecting record

Posted: Mon Dec 05, 2022 2:28 pm
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 650 times

Re: [VUE 2] Selecting record

Posted: Mon Dec 05, 2022 3:13 pm
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);
				}
			}
	},
},

Re: [VUE 2] Selecting record

Posted: Tue Dec 06, 2022 8:43 am
by thejas.pateel

Its works thanks