This is my scenario:
1) Create canvas A and add a tab set with 2 tabs
---a) Add a list grid to the 2nd tab
2) Create canvas B and add a tab set with 2 tabs
---a) Add the same list grid in step 1a to save loading times because it's mostly the same code and multiple canvases use it
3) Navigate to canvas A. Click the 2nd tab. Everything displays as should.
4) Navigate to canvas B. Click the 2nd tab. Everything displays as should.
5) Navigate back to the 2nd tab of canvas A (using an event that calls selectTab). The tab pane is blank.
If I click 1st tab of canvas A then click the 2nd tab. Everything displays as should though. So I think it has something to do with the tab pane needing to be drawn.
Some things I've tried are calling Tab.setPane(); TabSet.updateTab(); tab pane draw() when !isDrawn(); and redraw() on the canvas, tab pane, and tab set. Nothing seems to work.
I can try to post my code but we're using the MVP pattern and it might take a while to post the relevant parts.
I'm using IE7 with SmartGWT 2.3 (schedule is not permitting upgrade to 2.4 yet).
Any tips? Thanks!
1) Create canvas A and add a tab set with 2 tabs
---a) Add a list grid to the 2nd tab
2) Create canvas B and add a tab set with 2 tabs
---a) Add the same list grid in step 1a to save loading times because it's mostly the same code and multiple canvases use it
3) Navigate to canvas A. Click the 2nd tab. Everything displays as should.
4) Navigate to canvas B. Click the 2nd tab. Everything displays as should.
5) Navigate back to the 2nd tab of canvas A (using an event that calls selectTab). The tab pane is blank.
If I click 1st tab of canvas A then click the 2nd tab. Everything displays as should though. So I think it has something to do with the tab pane needing to be drawn.
Some things I've tried are calling Tab.setPane(); TabSet.updateTab(); tab pane draw() when !isDrawn(); and redraw() on the canvas, tab pane, and tab set. Nothing seems to work.
I can try to post my code but we're using the MVP pattern and it might take a while to post the relevant parts.
I'm using IE7 with SmartGWT 2.3 (schedule is not permitting upgrade to 2.4 yet).
Any tips? Thanks!
Comment