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

RadTabStrip postsback with AutoPostback=false

5 Answers 409 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Ramesh
Top achievements
Rank 1
Ramesh asked on 09 Sep 2008, 08:45 PM
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?

5 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 10 Sep 2008, 08:32 AM
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.
0
Ramesh
Top achievements
Rank 1
answered on 10 Sep 2008, 12:16 PM
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
0
r00tsecurity
Top achievements
Rank 1
answered on 19 Mar 2009, 08:47 AM
Thanks for the answer. Solved my problem too
0
Yaniv
Top achievements
Rank 1
answered on 25 Mar 2012, 04:50 PM
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
0
Dimitar Terziev
Telerik team
answered on 27 Mar 2012, 04:59 PM
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.
Tags
TabStrip
Asked by
Ramesh
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Ramesh
Top achievements
Rank 1
r00tsecurity
Top achievements
Rank 1
Yaniv
Top achievements
Rank 1
Dimitar Terziev
Telerik team
Share this question
or