Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

tabpanel navigation gridview persists after navigating away from panel even when visible set to false in codebehind

$
0
0

I have web form using tabpanel navigation.  One of the tabs contains two clickable bar charts and a gridview.  When the tab is opened the first chart appears.  When a bar on the first chart is clicked the second chart appears.  When a bar on the second chart is clicked the gridview appears.  When I click to another tab and then back to the first tab the two charts are gone but the gridview is still there.  I would prefer that either all three controls are gone or all three are still there.  I created some code behind to execute on the unload event of the tabpanel that sets the gridview visible="false".  When I run the form in debug with a breakpoint on the codebehind I can see the gridview visible="false" execute but when I click the original tab again the gridview is still there.

Could someone kindly explain to me what is going on - why is the gridview still visible?  I would rather all three controls still be visible when I navigate back to the tab or all three be gone.

Thanks tonnes for any help, Roscoe


Viewing all articles
Browse latest Browse all 5678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>