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

scrolling tab problem

1 Answer 45 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Dmitry
Top achievements
Rank 1
Dmitry asked on 04 Jul 2011, 11:25 PM
Hi,

I wonder how I can resolve the following issue.

I have tab strip set with attributes:
PerTabScrolling="false"
ScrollChildren="true"
ScrollButtonsPosition="Right"
OnClientLoad="rtsAutoSelectFirstTab"
OnClientTabSelecting="rtsTabSelecting"

        function rtsAutoSelectFirstTab()
        {
            var rts = $find("<%=rts.ClientID%>");
            rts.get_tabs().getTab(0).scrollIntoView();
        }

        function rtsTabSelecting(sender, args)
       {
            //scroll intto visible area selected tab
            args.get_tab().scrollIntoView();
       }


each Tab in a strip has "close tab" image, which removes tab on click. Tab removal is organized on server side and tab strip is getting rebuilt, with 1st tab auto selected.

While all tabs are visible w/o scrolling, no issues are there, however, after I add enough tabs, scroll to the right and start removing them one by one, at some point scroll bar disappears and the leftmost tab disapears from the view or being shown only as a part. Despite having rtsTabSelecting, this leftmost tab is not shown as it should.

any help would be appreciated!

Thanks!

1 Answer, 1 is accepted

Sort by
0
Kate
Telerik team
answered on 08 Jul 2011, 02:30 PM
Hi Dmitry,

Unfortunately the code that you provided is not enough for us to be able to reproduce the issue. I would suggest, however, that you open a support ticket and send us a runnable simple project so we can inspect where the issue comes from and help you out with a suitable solution.

Best wishes,
Kate
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
TabStrip
Asked by
Dmitry
Top achievements
Rank 1
Answers by
Kate
Telerik team
Share this question
or