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.
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.
Hello,
The best way to go about handling this situation would be to handle the BeforeSelectedTab change event on the client and cancel that event if validation fails:
function WebTab_BeforeSelectedTabChange(oWebTab, oTab, oEvent) {
if(!Valid)
oEvent.canel = true;
}
-Taz.