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

3 posts, 0 answers
  1. Philippe
    Philippe avatar
    8 posts
    Member since:
    Jun 2010

    Posted 03 Feb 2014 Link to this post



    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. Philippe
    Philippe avatar
    8 posts
    Member since:
    Jun 2010

    Posted 03 Feb 2014 Link to this post

    Duplicate. Sorry.
    I received a server error when posting...

    Philippe
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Hristo Valyavicharski
    Admin
    Hristo Valyavicharski avatar
    975 posts

    Posted 05 Feb 2014 Link to this post

    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.
Back to Top