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

Rad Tab Click Event not firing the first time

18 Answers 672 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Amendra
Top achievements
Rank 1
Amendra asked on 25 Nov 2008, 05:40 AM
Hi,

I am using the the RadTabStrip and RadPageViews in my application. The Tabs and Page views are added Dynamically at Runtime and more controls are added to the PageView at runtime as well.

Each pageView is added to the Tab at runtime.

My problem is the TabClick event does not fire the first time I run the Web app, but starts firing after 1 post back. I am totaly clueless as to why this is happening.

At the same time, if I do a TabControlName.Tabs.Clear() and ControlName.PageViews.Controls.Clear() in the runtime, it happens again for the first postback and then its working fine.

Any leads to track this problem will help.

AutoPostBacks are true for the Controls and Even in the code behind to make sure it does the postback.

Thanks
A.K

18 Answers, 1 is accepted

Sort by
0
Poul Henningsen
Top achievements
Rank 1
answered on 25 Nov 2008, 07:47 AM
I had a similar issue where I had a RadTabStrip in a User Control, where the user control was dynamically loaded. On the very first click only, the TabClick event did not fire.

The issue went away once I assigned the user control's ID property.
0
Amendra
Top achievements
Rank 1
answered on 26 Nov 2008, 12:06 AM
Thanks Paul for your feedback,
Mine is on a Page which has a MasterPage. Actually I have 2 RadStrips in the Page and only 2nd one is causing the problem.

Wonder why... do you reckon if I get the latest version of RadControls this will be fixed.?
0
Paul
Telerik team
answered on 05 Dec 2008, 09:37 AM
Hello Amendra,

I think it will be best if you can open a support ticket and send us a simple running project (incl. CSS, images, skins, DB backup if needed and so on) demonstrating the problem (and step-by-step instructions on doing so). In that way we can reproduce and pinpoint the problems you're facing on our side, understand the logic of your application and provide a solution.

Thanks beforehand for your patience and cooperation,
Seth
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Fiona
Top achievements
Rank 1
answered on 29 Jan 2009, 12:05 PM
Hi
I was just wondering if this was ever resolved? We are seeing the same problem. On a page with tabs the click event on the non-active tab doesn't respond until after a page postback has occured. 
Many thanks
0
ile
Top achievements
Rank 1
answered on 24 Feb 2009, 02:03 PM

Hi,

For me - same problem as well. I have another Rad TabStrip on Master page. The second one that resides on normal page isn't working without postback first.

Ilkka

0
Fiona
Top achievements
Rank 1
answered on 24 Feb 2009, 02:10 PM
Ilkka,
Don't know if it will be the same for you, but my problem turned out to be that it was firing validation. For some reason the validators weren't showing up but they were preventing the user moving off that page (tab). I got around it by adding 
CausesValidation="false" to the telerik:RadTabStrip control.
I hope that helps.

 

0
ile
Top achievements
Rank 1
answered on 24 Feb 2009, 02:30 PM
Hi Fiona,

Thanks for your reply. I tried it but without success. Page_Load gets hit but TabClick event doesn't.

ilkka
0
Amendra
Top achievements
Rank 1
answered on 25 Feb 2009, 12:02 AM
Nope... but i did find a way around it. If you look closesly with the debugger, its only the tab event method that we cannot get inside to. But the actual postback occurs and all the page events get fired except for the tab event. All I did was handled my code in the Page_LoadComplete event. To identify which tab is causing, all you need is to use the RadTabStripSample.SelectedTab.Index and then do whatever you need.

Hope this helps
Amendra

 

0
Amendra
Top achievements
Rank 1
answered on 25 Feb 2009, 12:29 AM
Check the reply I had given for Fiona. I guess that should work for you though its not a fix for the control.
0
ClarkSRoberts
Top achievements
Rank 1
answered on 12 Jan 2010, 02:48 PM
My situation is even stranger. I SWEAR the TabClick event was firing correctly a few days ago, and it has suddenly stopped firing, both on my development machine AND my production server. Very weird.
0
hll
Top achievements
Rank 1
answered on 03 Feb 2010, 03:23 PM
Poul, thank you!
I have been trying to fix this bug for two days!


0
Ranjani
Top achievements
Rank 1
answered on 11 Aug 2010, 10:10 AM
Hi,
i too have teh same problem of the event not firing on first time. you have suggested of setting the id value . could you please explain me how to set it with a sample coding.
Thanks in advance
Ranjani.N.S
0
Peter
Telerik team
answered on 12 Aug 2010, 11:52 AM
Hi Ranjani,

Can you please send us the code of your implementation? We will try to replicate the problem locally and provide you with a solution.


Greetings,
Peter
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Advait
Top achievements
Rank 1
answered on 08 Dec 2010, 02:43 PM
Hi,
 We have the exact same situation as faced by Amendra above. The Tabstrip gets locked the first time the page loads but works fine once there is a postback. Can someone please help?

Thanks
-Advait
0
Simon
Telerik team
answered on 08 Dec 2010, 04:44 PM
Hi Advait,

We have not received a sample project showing the error yet and a sample project will allows to find the root cause of this issue.

Can you please send a project via a support ticket?

Regards,
Simon
the Telerik team
Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Justin
Top achievements
Rank 1
answered on 26 Oct 2012, 02:36 PM
Was this error with the Tab Control ever corrected?  I am working on a project that has a very tight timeline and the tabs are an essential part of the flow on the page.  All of a sudden, after several weeks of development, the tabs stopped working.  I am at my witt's end.  Please give me a hand as soon as possible.  Thanks

James
0
Kate
Telerik team
answered on 29 Oct 2012, 07:41 AM
Hi Justin,

We have implemented various changes in the RadTabstrip control since December 2010 (the last post in the forum). Also the information that you provided is not sufficient for us to replicate and inspect the issue.  Therefore I would suggest that you open a support ticket where you can provide an example of your code that we can test locally. Thus, we can help you out in the most efficient way. Can you also clarify if the issue occurs only on your machine or when you deploy the application on the server?  

Regards,
Kate
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.
0
Nicolaï
Top achievements
Rank 2
answered on 12 Feb 2013, 02:17 PM
Thanks Poul Henningsen, forgot 1 line when recreating the usercontrol to give it an ID.
Had the same symptom, simply assigning a proper ID did the trick...
Tags
TabStrip
Asked by
Amendra
Top achievements
Rank 1
Answers by
Poul Henningsen
Top achievements
Rank 1
Amendra
Top achievements
Rank 1
Paul
Telerik team
Fiona
Top achievements
Rank 1
ile
Top achievements
Rank 1
ClarkSRoberts
Top achievements
Rank 1
hll
Top achievements
Rank 1
Ranjani
Top achievements
Rank 1
Peter
Telerik team
Advait
Top achievements
Rank 1
Simon
Telerik team
Justin
Top achievements
Rank 1
Kate
Telerik team
Nicolaï
Top achievements
Rank 2
Share this question
or