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
    Admin
    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

    Regards,
    Albert
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Ramesh
    Ramesh avatar
    15 posts
    Member since:
    Nov 2007

    Posted 10 Sep 2008 Link to this post

    Albert,
    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.

    HTH
  5. 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
  6. Yaniv
    Yaniv avatar
    4 posts
    Member since:
    Sep 2011

    Posted 25 Mar 2012 Link to this post

    Hi

    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?

    Thanks
  7. Dimitar Terziev
    Admin
    Dimitar Terziev avatar
    1266 posts

    Posted 27 Mar 2012 Link to this post

    Hello,

    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
UI for ASP.NET Ajax is Ready for VS 2017