tabstrip tabs are preserving their initial enabled property setting on postback

2 posts, 0 answers
  1. gunther
    gunther avatar
    95 posts
    Member since:
    Mar 2009

    Posted 26 Feb 2010 Link to this post

    i am using a tabstrip, some tabs of which are inintially disabled via markup code:

        <telerik:RadTab Text="Arrangement" Value="Arrangement" />
        <telerik:RadTab Text="Specials" Value="Specials" Enabled="false" />
        <telerik:RadTab Text="Monthly Commitments" Enabled="false" Value="MonthlyCommitments" />

    i then have client code that enables the tabs based on certain client-side events like so:

    function SelectSpecialsTab() {

        if (Page_IsValid) {
            var Tab = GetTab("Specials");

        return false;

    this works fine.  however, everytime the server is hit via postback or ajaxmanager request client code (.ajaxRequest(string), for example), the tabs revert back to their initial enabled property settings, disabled in this case.

    i've even tried taking the enabled = "false" property out of the markup and setting it in the codebehind in a !ispostback block, but it still disables the tabs.  when i take the enabled = "false" logic out completely from the markup and codebehind, the tabs stay enabled.

    any idea on how to keep this from happening?

  2. Schlurk
    Schlurk avatar
    812 posts
    Member since:
    May 2009

    Posted 01 Mar 2010 Link to this post

    You need to make sure that you are using trackChanges() and commitChanges() in your client-side functions that affect the TabStrip otherwise the changes you make will not be persisted to the server-side and this kind of behavior (where any server-side calls render an unchanged TabStrip) will occur. You can find more about these functions in this documentation article.
Back to Top