This is a migrated thread and some comments may be shown as answers.

Switch active tab from code-behind: sometimes OK, sometimes KO...

2 Answers 33 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Philippe
Top achievements
Rank 1
Philippe asked on 03 Feb 2014, 09:18 AM


Hello eveybody,

I have a tabstrip with four tabs, each tab linked to a pageview.
On the first tab (Basket), a button allows to jump to the second tab (Shipping).
On the second tab (Shipping), a button allows to jump to the thirth tab (Payment).

After a click on the first button, nothing changes on screen, but all properties of the tabstrip (selectedindex) and pageviews (enabled, selected) are OK !
After a click on the second button, eveything runs fine: the thirth tab is activated...

Here my code-behind...

protected void btnShipping_Click(object sender, EventArgs e)
{
   // From first tab to the second tab
   tabShipping.Enabled = true;
   tabShipping.Selected = true;
   pvShipping.Selected = true; // Nothing happens. Stays on the first tab, but all properties are OK...
}

protected void btnPayment_Click(object sender, EventArgs e)
{
   // From second tab to the thirth tab
   tabPayment.Enabled = true;
   tabPayment.Selected = true;
   pvPayment.Selected=true; // No problem. Everything runs fine... 
}

Any idea ?

Philippe

2 Answers, 1 is accepted

Sort by
0
Philippe
Top achievements
Rank 1
answered on 03 Feb 2014, 09:29 AM
Duplicate. Sorry.
I received a server error when posting...

Philippe
0
Hristo Valyavicharski
Telerik team
answered on 05 Feb 2014, 01:48 PM
Hi Philippe,

This is a strange behavior. We are not aware of it. Please provide us with more information about this problem. The best would be if you can attach a sample project.

Thanks.

Regards,
Hristo Valyavicharski
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the UI for ASP.NET AJAX, subscribe to the blog feed now.
Tags
TabStrip
Asked by
Philippe
Top achievements
Rank 1
Answers by
Philippe
Top achievements
Rank 1
Hristo Valyavicharski
Telerik team
Share this question
or