I am using the tabcontiner control, upon which I have placed 4 tabpanels. Based on the user clicking a button on one tab, I need to be able to disable all other tabs to prevent the user moving away unless they complete the operation, or cancel. I have tried to use the following
TabPanel1.Enabled =True
and
Me.TabContainer1.Tabs(0).Enabled =False
Unfortunately I have had no luck, any suggestions?
Michael.
When you set the TabPanel.Enabled = false it will disappear as I have just tested. I don't know if this is the desired effect that you are looking for or not.
You may want to set the AutoPostBack to true and then hook up an event to OnClientActiveTabChanged so that you can disable the other tabs. Of course you will want to wrap an update panel around the tabcontainer for a better client experience.
I hope this helps.
Hi Jim
Making the tabs disappear would be an acceptable solution, however, the above command will not even do this for me. I will give a look at your solution.
Michael.
No comments:
Post a Comment