Aug 15, 2011, 10:51 AM
Cache panel content
Hi,
I am trying to show an accordion with various panels inside. For the time being I am loading the single panel contents when the panel is expanded. Problem is that this content is loaded every time it is expanded and not only the first time. I was wondering if there is a way in ext (.net or JS) to check if the panel already has content or if the load has already happened to avoid continuous round-trips to the server...
I have also tried to preload the panels content at the page startup, so all the panels will be loaded before usage, but again I wouldn't like to add time to the initial page load, so I used "AutoRender = false" (which actually worked quite well for a window that I used in the past) but nonetheless the panels are all loaded at the start even if they are all collapsed.
Anyone has any idea on how to solve this, one way or the other? :)
Regards,
I am trying to show an accordion with various panels inside. For the time being I am loading the single panel contents when the panel is expanded. Problem is that this content is loaded every time it is expanded and not only the first time. I was wondering if there is a way in ext (.net or JS) to check if the panel already has content or if the load has already happened to avoid continuous round-trips to the server...
I have also tried to preload the panels content at the page startup, so all the panels will be loaded before usage, but again I wouldn't like to add time to the initial page load, so I used "AutoRender = false" (which actually worked quite well for a window that I used in the past) but nonetheless the panels are all loaded at the start even if they are all collapsed.
Anyone has any idea on how to solve this, one way or the other? :)
Regards,