PDA

View Full Version : Question: Single store with multiple presentations



Joe Kuan
27 Sep 2010, 3:15 PM
Hi,

I am going to create a single Store object and multiple presentation objects (e.g Grid Panel, Charts). All the presentation objects are pointing to the same Store object. When I call the load method, it will fire the 'load' event from the Store object.

Do I need to manually code the load event handler of the Store object to fireEvent a 'redisplay' event onto each presentation object? Or these all have been taken care of in Extjs when I link a store object onto a presentation object creation?

Thanks
Joe the beginner

StuartAshworth
28 Sep 2010, 1:05 AM
If you reload a Grid's store the grid will redisplay the new data by itself. I would imagine the same is true for charts.