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

Tabs stop working after refresh

5 Answers 116 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Nik
Top achievements
Rank 1
Nik asked on 01 Oct 2009, 06:53 PM
I've come across an issue where my TabStrip stops working in Firefox if the page is refreshed via F5 instead of ctrl-F5. I dont have a spot to test if it happens after postback or not. I'm aware that I dont need the JS function to switch tabs..it was just an attempt to fix the issue. I put an alert() in the JS and found its not going into the function at all after a F5 refresh. Do I need to run a reset function or something on the usercontrol pageload or maybe tooltip load? Again, this appears to only be a FF issue...IE works as expected. Using Version 2008.1.515.20.

<rad:RadTabStrip ID="radQPTabs" runat="server" MultiPageID="radmultipage" BorderWidth="0" 
                OnClientTabSelected="onSelectedQuickPeekTab"  Skin="Vista"
                <Tabs> 
                    <rad:RadTab Text="Price" Selected="true" Width="95px"
                    </rad:RadTab> 
                    <rad:RadTab Text="Details" Width="95px"
                    </rad:RadTab> 
                </Tabs> 
            </rad:RadTabStrip> 

function onSelectedQuickPeekTab(sender, args) { 
    var tabs = args.get_tab(); 
    var strTabText = tabs.get_text(); 
         
    if (strTabText.indexOf("Price") > -1) { 
        tabs.set_selectedIndex(0); 
    } else if (strTabText.indexOf("Details") > -1) { 
        tabs.set_selectedIndex(1); 
    } 

5 Answers, 1 is accepted

Sort by
0
Paul
Telerik team
answered on 02 Oct 2009, 07:07 AM
Hi Nik,

We tried to reproduce the reported issue using the latest versions of the controls, but to no avail. Please upgrade the controls in your application and let us know how it goes.

Kind regards,
Paul
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Nik
Top achievements
Rank 1
answered on 02 Oct 2009, 12:55 PM
I failed to mention that the page with the tabstrip is a usercontrol that's loaded into a ToolTip. I made a test page with just the UC and it works fine after F5. Once the UC is loaded into the tooltip however, it stops working after F5 in Firefox. Does that mean its some issue with Ajax?

We're unable to upgrade at this time, as it would require a complete site QA.

Edit: I just changed the item thats loaded in the UC to one that has a RadComboBox in it as well. That also stops functioning after an F5. So it is definitely an ajax tooltip issue.
0
Paul
Telerik team
answered on 05 Oct 2009, 12:24 PM
Hello Nik,

Unfortunately, the provided information does not help us much in reproducing the error. 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.

Sincerely yours,
Paul
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Luca B
Top achievements
Rank 1
answered on 30 Jun 2015, 07:44 AM

Hi there,

I am having the exact issue here, the only difference is that I force a page refresh using Javascript. I am using the latest version 2015.2.623.40.

I have a multipage containing several IFrames and one of the Iframes have to refresh another one. So I cause a postback using this snippet

if (WebForm_PostBackOptions) {
            var val = true;
            if (arguments.length > 1) val = arguments[1];
            formSubmit(new WebForm_PostBackOptions("update_values", param, val, "", "", false, true));
        }
        else {
            __doPostBack("update_values", param);
        }

The param has a "rebindGrid" value (but I guess it doesn't matter).

In FF developer console I get this error

TypeError: n is null
Sometimes is "l is null" rather than n, but again I guess it doesn't matter.

The relevant source code is this

if(!($telerik.isIE7||$telerik.isIE8)){var n=getComputedStyle(s[q]),m=t=="offsetWidth"?(parseFloat(n.width)+parseFloat(n.paddingLeft)):parseFloat(n.height);

So it looks like something related to resizing an object.

Any chance this gives you a hint on how to solve the issue?

Thanks

0
Peter Filipov
Telerik team
answered on 02 Jul 2015, 08:25 AM
Hello Luca,

We are not  able to recreate a sample from the provided description and code snippet. Could you please open a support ticket and attach a runnable sample where we could observe the problem. 

Regards,
Peter Filipov
Telerik
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 Feedback Portal and vote to affect the priority of the items
Tags
TabStrip
Asked by
Nik
Top achievements
Rank 1
Answers by
Paul
Telerik team
Nik
Top achievements
Rank 1
Luca B
Top achievements
Rank 1
Peter Filipov
Telerik team
Share this question
or