scrolling tab problem

2 posts, 0 answers
  1. Dmitry
    Dmitry avatar
    11 posts
    Member since:
    Dec 2010

    Posted 04 Jul 2011 Link to this post

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

    Posted 08 Jul 2011 Link to this post

    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!

Back to Top