Reputation: 19199
I am using extjs 4.1 data store. I have attached the store to three grids.
When user selects a record on gridOne, I update addedOnGridOne
property to true. Similarly when user add a record on GridTwo, I update addedOnGridTwo
property to true.
Now I have a added a checkbox, when this checkbox is checked, I need to reset addedOnGridOne
& addedOnGridTwo
properties available in the store & while this checkbox is checked, i need to separately maintain addedOnGridOne
& addedOnGridTwo
properties.
What I want is: After the store is loaded for the first time, I want to create two copies of data available in store.
If the checkbox is chedked, I will load the first copy of data and if user is on tab two I will load second copy of data.
What options are available to me here? is it a good idea. Is there any better approach? Please suggest
Upvotes: 0
Views: 131
Reputation: 5856
One store for more grids almost always leads to troubles as sorting, filtering and editing influences all three grids. If you need three grids working with the same data you could have three separate store instances loaded with the same data.
Upvotes: 1