Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
275
To set selected index on tab
posted

 Hi all,

I am using ultraweb tab with having two tabs in it,

I click on  2nd tab item. I want to set the selected index on 1st tab if a validation fails in 1st tab. If no validation fails, then 2nd tab would be selected.

i tried using UltraWebTab1.Tabs[UltraWebTab1.TabIndex] = e.PreviousSelectedTab; but it gives me error. 

Thanks in advance. 

 

Parents
No Data
Reply
  • 195
    posted

     In code behind page (C#) you can use something like

    ultraWebTab1.SelectedTabIndex = 1;

    or in your case maybe you want to use

    ultraWebTab1.SelectedTabIndex = e.PreviousSelectedTab

     (but I have not used e.PreviousSelectedTab myself so not completely sure it would work)

     

    James.

Children
No Data