Page 1 of 1

[VUE 2]grid store not updating correctly

Posted: Wed Nov 23, 2022 2:15 pm
by thejas.pateel

Hi,
I am adding record by using grid.store.insert(0,record) /grid.store.add(record) code. but when i check in grid.store.data list its not coming.is there any syncing issue? i have also called grid.store.commit().
Kindly help me for this problem.


Re: [VUE 2]grid store not updating correctly

Posted: Wed Nov 23, 2022 2:36 pm
by tasnim

Hello,
You should not use grid.store.data to get updated records, it will return the initial records. To get the updated records please use grid.store.records

Please check this docs link https://bryntum.com/products/grid/docs/api/Core/data/Store#property-records

Good Luck :),
Tasnim


Re: [VUE 2]grid store not updating correctly

Posted: Wed Nov 23, 2022 2:44 pm
by thejas.pateel

Hi,
I am using grid.store.filter() to filter records dynamically new added data is not filtering.

please see code below. kindly help me out. My Analysis is its filtering data in store.data.how to filter newly added data.

filter.jpg
filter.jpg (19.83 KiB) Viewed 444 times

Re: [VUE 2]grid store not updating correctly

Posted: Wed Nov 23, 2022 8:52 pm
by mats