Scroll to TileGroup programmatically

3 posts, 0 answers
  1. rugydp
    rugydp avatar
    15 posts
    Member since:
    Jul 2014

    Posted 17 Aug 2015 Link to this post

    Hi

     I have a TileList that consists of 3 groups (yesterday, today, tomorrow) displayed horizontally, each with a group header tile. 'Yesterday' is on the left, 'Today' is center, 'Tomorrow' is on the right.  I want to scroll horizontally to the 'today' group on pageLoad. Anchors don't seem to work or only vertically. Any ideas how to accomplish this?

    Thank you

  2. Stanimir
    Admin
    Stanimir avatar
    1653 posts

    Posted 19 Aug 2015 Link to this post

    Hi,

    Could you please check if the following suggestion will do the job for you?

    Add a ClientLoad javascript handler (review the following article http://docs.telerik.com/devtools/aspnet-ajax/controls/tilelist/client-side-programming/events/onclientload) and use this code sample:
    function OnClientLoad(sender, args) {
        sender.get_groups().getItem(1).get_element().scrollIntoView();
    }



    Regards,
    Stanimir
    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. rugydp
    rugydp avatar
    15 posts
    Member since:
    Jul 2014

    Posted 19 Aug 2015 in reply to Stanimir Link to this post

    Hi Stanimir

     That's exactly what I wanted to accomplish.

     Thank you so much.

    Regards,
    Ruggero 

Back to Top