RadTabStrip postsback with AutoPostback=false

6 posts, 0 answers
  1. Ramesh
    Ramesh avatar
    15 posts
    Member since:
    Nov 2007

    Posted 09 Sep 2008 Link to this post

    Even if AutoPostback is set to false on a RADTabstrip ASP.Net AJAX control, the post back is not prevented and the control does a postback. Stepping thru the code, the Tabstrip client side javascript code looks for a property named "postback" and because it does not find it, forces a postback.

    The previous version of RADTabStrip control did not do this.

    Any ideas?
  2. Atanas Korchev
    Atanas Korchev avatar
    8462 posts

    Posted 10 Sep 2008 Link to this post

    Hello Ramesh,

    RadTabStrip will postback in two cases:
    • The AutoPostBack property is set to true
    • You have subscribed to the TabClick event

    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. Ramesh
    Ramesh avatar
    15 posts
    Member since:
    Nov 2007

    Posted 10 Sep 2008 Link to this post

    Thank you for the quick response.

    Yes I had subscribed to the TabClick event in the code behind and once that was removed TabStrip does not do a postback if Autopostback=false

    However, this behavior is different from the previous version of the control (RADTabStrip). I upgraded my page from RADTabStrip to ASP.NET AJAX RadTabStrip (Q2 2008 version) and the postbacks started happening.

  4. r00tsecurity
    r00tsecurity avatar
    14 posts
    Member since:
    Apr 2007

    Posted 19 Mar 2009 Link to this post

    Thanks for the answer. Solved my problem too
  5. Yaniv
    Yaniv avatar
    4 posts
    Member since:
    Sep 2011

    Posted 25 Mar 2012 Link to this post


    I wont to implement 2 modes for my TabStrip/MultiPage

    ReadOnly - with no postback in TabClick.
    Edit/Insert - with postback in TabClick.

    but TabStrip will allways postback if i set the OnTabClick  property
    and this property is not accessible from code behind.

    how whould you do that?

  6. Dimitar Terziev
    Dimitar Terziev avatar
    1268 posts

    Posted 27 Mar 2012 Link to this post


    You could add and remove event handler function from code behind in the following manner:
    RadTabStrip1.TabClick += new RadTabStripEventHandler(RadTabStrip1_TabClick);
    RadTabStrip1.TabClick -= new RadTabStripEventHandler(RadTabStrip1_TabClick);

    All the best,
    Dimitar Terziev
    the Telerik team
    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 RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top