Hi,
I have scenario that based on selecting the parent records ,child records will filtered based on the selection using store filter functionality. when i used insert function in store to store record at particular index it is appending the record at the end of the grid , not at the particular index.Kindly help me out.
Support Forum
For TreeStore it works different. You need to use https://bryntum.com/products/grid/docs/api/Core/data/mixin/TreeNode#function-insertChild for parent child node to add into tree. There is a second optional parameter before
to specify a record to insert before.
Example:
grid.selectedRecord.parent.insertChild({id: 333, name : 'Hello'}, grid.selectedRecord);
All the best,
Alex
Thanks for the reply i am using two different grid .based on selecting of first record in first grid. i am filtering in other grid.I am not using tree store.
For while inserting to filtered record at particular index is not working.
But without filter inserting record at particular index is working fine .using store.insert
Thank you for clarifications! I reproduced this and opened a ticket here https://github.com/bryntum/support/issues/5730
Is there any way to stop auto sorting after filtering?
We have to wait for fix, unfortunately.
All the best,
Alex