anupkumarrai
11-16-2008, 04:59 AM
I have a ViewStack which consists of 2 AdvancedDataGrid.
I have 2 buttons which allow selecting these ADGs.
When I load the Flex Application, the first viewStack and its ADG gets loaded.
When I click the second button, I get the second ADG under second view stack loaded.
So far so good.
I have a few Slider and checkbox controls which are attached to filter the ADGs. They call the same filterfunction.
The problem is that I want to control each of the ADGs separately.
When the visible viewstack is second ADG, controls seem to refresh data on both datagrids simultaneously. Even though the call to just one of the ADG refresh is made, it seems to refresh data on both ADGs.
This happens only after the second ADG is views at least once.
This makes the app terrible slow.
Can I have just one of the datagrid refresh at a time? Currently the shifting between tabs/viewstacks is very fast, but the slider-change -> data update is very slow.
I can live with the tab switch delay.
I tried
A) having 2 separate filterfuntions.
B) Dataprovider same and different
C) Used both tabnavigator and viewstack
D) create ADGs dynamically.
E) Set the otherADG null when one is selected and vice-versa
All produces no diffrenece. Same result.
Any help is appreciated.
-Anup
I have 2 buttons which allow selecting these ADGs.
When I load the Flex Application, the first viewStack and its ADG gets loaded.
When I click the second button, I get the second ADG under second view stack loaded.
So far so good.
I have a few Slider and checkbox controls which are attached to filter the ADGs. They call the same filterfunction.
The problem is that I want to control each of the ADGs separately.
When the visible viewstack is second ADG, controls seem to refresh data on both datagrids simultaneously. Even though the call to just one of the ADG refresh is made, it seems to refresh data on both ADGs.
This happens only after the second ADG is views at least once.
This makes the app terrible slow.
Can I have just one of the datagrid refresh at a time? Currently the shifting between tabs/viewstacks is very fast, but the slider-change -> data update is very slow.
I can live with the tab switch delay.
I tried
A) having 2 separate filterfuntions.
B) Dataprovider same and different
C) Used both tabnavigator and viewstack
D) create ADGs dynamically.
E) Set the otherADG null when one is selected and vice-versa
All produces no diffrenece. Same result.
Any help is appreciated.
-Anup