This is a migrated thread and some comments may be shown as answers.
scrollIntoView throws Javascript error if PerTabScrolling="false"
1 Answer 13 Views
This is a migrated thread and some comments may be shown as answers.
The Doctor
Top achievements
Rank 1
The Doctor asked on 14 Oct 2009, 05:44 PM
We've been using the ASP.NET Ajax RadTabStrip (and other controls) since it came out to great success. We use RadTabStrip on our main "Dashboard" page, where users can organize their screens of data by assigning them to different tabs. Users can create as many tabs as they want.

Some users have more tabs than will fit on screen, so to conserve precious space we've set ScrollChildren="true", and use scrollIntoView() whenever necessary so that users can always see the selected tab. However, the scrollIntoView function now throws a Javascript error ('getTab(...)' is null or not an object) since we upgraded to ASP.NET 3.5 and RadControls for AJAX build 2009.2.826. Previously we were using 2009.1.527 and scrollIntoView worked fine for us.

Further testing (on a very basic page with static tabs) revealed that the error only occurs when PerTabScrolling is false (the default). While setting PerTabScrolling to True would seem like a simple answer, it doesn't work for us because scrolling through 10-20 tabs at one tab per click is not practical, plus the tabs jump rather than move, making it confusing to the user as to what just happened.

I also tried manually manipulating ScrollPosition, but alas, this only works when PerTabScrolling is true. At least that behavior is in the documentation.

Is there a workaround until this is fixed in an upcoming build? It's a real deal-breaker for us.

Regards,

John Greenstreet, Consultant
Automotive Resources Inc.

1 Answer, 1 is accepted

Sort by
0
Paul
Telerik team
answered on 22 Oct 2009, 01:37 PM
Hi John,

Could you please open a support ticket and send a simple running project (incl. CSS, images, DB backup and so on) demonstrating the problems. 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.

All the best,
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.
Asked by
The Doctor
Top achievements
Rank 1
Answers by
Paul
Telerik team
Share this question
or