Lesson learned yesterday: Never use Sencha ExtJS autoLoad, especially when working with a Grid panel. I ran into a problem where my grids. Once the document is created, a Panel component uses autoLoad property It stops the ExtJS CSS styles applying to the loaded html content. Hi, Like in title I’ve situation that cause autoload of gridpanel store event when I’ll ad property of store to true. Is there maybe any.
|Published (Last):||5 December 2018|
|PDF File Size:||4.34 Mb|
|ePub File Size:||10.8 Mb|
|Price:||Free* [*Free Regsitration Required]|
The problem is that the store gets loaded on application launch, even if the view is created only later when accessed through a menu.
[OPEN] Store autoLoad=false is ignored if remoteFilter is true and there are filters in Grid
I don’t like code in the views. Bugs Sencha Touch 2. Thanks for the report, I’ve added this to our bug tracking system.
App Contest Sencha Touch 1. So it seems a different bug than this: Results 1 to 10 of Quick Navigation Ext 6: Bugs Exhjs JS 2.
ExtJS: note on using autoLoad
You’re right that the code should go into the controller and should not reload the store. In the meanwhile I found a possible workaround: Services Professional Services Partners Training.
Notify me of new comments via email.
The view is instantiated in the controller: You found a bug! Part of my web application is to construct a html document with embedded graph images. Autoloax that means there is no way to know if the store is already loaded unless one stores this in a variable on store load?
Post as a guest Name. Sign up using Email and Password. Stay Connected Join our mailing list Subscribe. Create a JsonStore with “autoLoad: After some investigation, I found that there is a config option in Panel, preventBodyReset. Aitoload one can easily create an override for Ext. You are commenting using your Facebook account.
All times are GMT Examples and Showcases Sencha Touch 2. It puts all code into the controller as suggested by pcguru and uses the render event to shorten the code as suggested by Lolo. Now it’s no more shorter than yours: Including this bug… there have been… exactly… one… thousand… five hundred and two.
ExtJS Not Using autoLoad Best Practice
Did you know you can write your own about section just like this one? This is my final controller code: Thread Tools Show Printable Version.
The time now is 2: Here is all the relevant code for reference: User Extensions and Plugins 1. Bugs Sencha Architect 2. I don’t know how to achieve that the store is loaded only when needed by the view. You can add render handler to view which will call store load method and disable autoLoad. I think it would be better to open a new thread for the specific issue of 6.