Rad Tab Click Event not firing the first time

19 posts, 0 answers
  1. Amendra
    Amendra avatar
    10 posts
    Member since:
    Nov 2008

    Posted 24 Nov 2008 Link to this post

    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
  2. Poul Henningsen
    Poul Henningsen avatar
    194 posts
    Member since:
    May 2006

    Posted 25 Nov 2008 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Amendra
    Amendra avatar
    10 posts
    Member since:
    Nov 2008

    Posted 25 Nov 2008 Link to this post

    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.?
  5. Paul
    Admin
    Paul avatar
    4281 posts

    Posted 05 Dec 2008 Link to this post

    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.
  6. Fiona
    Fiona avatar
    2 posts
    Member since:
    Jan 2009

    Posted 29 Jan 2009 Link to this post

    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
  7. ile
    ile avatar
    5 posts
    Member since:
    Oct 2006

    Posted 24 Feb 2009 Link to this post

    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

  8. Fiona
    Fiona avatar
    2 posts
    Member since:
    Jan 2009

    Posted 24 Feb 2009 Link to this post

    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.

     

  9. ile
    ile avatar
    5 posts
    Member since:
    Oct 2006

    Posted 24 Feb 2009 Link to this post

    Hi Fiona,

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

    ilkka
  10. Amendra
    Amendra avatar
    10 posts
    Member since:
    Nov 2008

    Posted 24 Feb 2009 Link to this post

    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

     

  11. Amendra
    Amendra avatar
    10 posts
    Member since:
    Nov 2008

    Posted 24 Feb 2009 Link to this post

    Check the reply I had given for Fiona. I guess that should work for you though its not a fix for the control.
  12. ClarkSRoberts
    ClarkSRoberts avatar
    27 posts
    Member since:
    Mar 2007

    Posted 12 Jan 2010 Link to this post

    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.
  13. hll
    hll avatar
    29 posts
    Member since:
    Aug 2008

    Posted 03 Feb 2010 Link to this post

    Poul, thank you!
    I have been trying to fix this bug for two days!


  14. Ranjani
    Ranjani avatar
    4 posts
    Member since:
    Aug 2010

    Posted 11 Aug 2010 Link to this post

    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
  15. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 12 Aug 2010 Link to this post

    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
  16. Advait
    Advait avatar
    3 posts
    Member since:
    Jul 2010

    Posted 08 Dec 2010 Link to this post

    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
  17. Simon
    Admin
    Simon avatar
    2281 posts

    Posted 08 Dec 2010 Link to this post

    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.
  18. Justin
    Justin avatar
    4 posts
    Member since:
    Jul 2011

    Posted 26 Oct 2012 Link to this post

    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
  19. Kate
    Admin
    Kate avatar
    1898 posts

    Posted 29 Oct 2012 Link to this post

    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.
  20. Nicolaï
    Nicolaï avatar
    160 posts
    Member since:
    Apr 2008

    Posted 12 Feb 2013 Link to this post

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