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

setting scrolling properties on client side

4 Answers 103 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
dick
Top achievements
Rank 1
dick asked on 07 Oct 2010, 07:22 AM
I have a tabstrip that I add tabs on the client side dynamically.

<telerik:RadTabStrip ID="RadTabStrip1" ScrollChildren="true" ScrollButtonsPosition="Right" Orientation="HorizontalTop"
                        SelectedIndex="0" runat="server" MultiPageID="RadMultiPage1" OnClientTabUnSelected="ontabUnselected"
                        OnClientTabSelected="ontabselected" Skin="Office2007">

I need to have a scroller when the width of the tabs are too long for the page to handle. Currently, what happens is that the last tab that does not fit the length of the page creates a second level of tabs below the original tabs.

If the length of the tabs are too long on page load, the scrolling works. But if the length of the tabs does not require a scroller on page load, the scroller does not come up even when a lot of tabs are already added.

How do I set the scrolling to true at the client side when needed?

4 Answers, 1 is accepted

Sort by
0
Kamen Bundev
Telerik team
answered on 07 Oct 2010, 11:34 AM
Hello Dick,

You can call the RadTabStrip's repaint() method when needed to reflow RadTabStrip and initialize scrolling.

Sincerely yours,
Kamen Bundev
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
dick
Top achievements
Rank 1
answered on 08 Oct 2010, 02:52 AM
Hi Kamen

Thanks for the reply. It's working fine now. the only problem is that while scrolling to the last tab, the arrows also scroll to the top of the page until it is almost completely out of the page.

Attached are two images for you to have a better picture of whats happening.

Also, when some of the tabs are already deleted and the tabs fit the tabstrip, the tabs still move to the left when I call scrollIntoView on a certain tab. This causes some of the tabs to be unviewable and thus unselectable. This happens when there is no scroll arrows anymore after deleting some tabs.

Thanks in advance.
0
Kamen Bundev
Telerik team
answered on 08 Oct 2010, 09:25 AM
Hi Dick,

Can you provide a live URL to this site so we can reproduce this behavior?

All the best,
Kamen Bundev
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
dick
Top achievements
Rank 1
answered on 14 Oct 2010, 02:35 AM
Hi Kamen,

Sorry I am unable to send you a URL. Can you instead send me a working sample complete with CSS?
Thanks in advance.
Tags
TabStrip
Asked by
dick
Top achievements
Rank 1
Answers by
Kamen Bundev
Telerik team
dick
Top achievements
Rank 1
Share this question
or