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

Scroll to TileGroup programmatically

2 Answers 41 Views
TileList
This is a migrated thread and some comments may be shown as answers.
rugydp
Top achievements
Rank 1
rugydp asked on 17 Aug 2015, 07:28 AM

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 Answers, 1 is accepted

Sort by
0
Stanimir
Telerik team
answered on 19 Aug 2015, 12:52 PM
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
0
rugydp
Top achievements
Rank 1
answered on 19 Aug 2015, 01:15 PM

Hi Stanimir

 That's exactly what I wanted to accomplish.

 Thank you so much.

Regards,
Ruggero 

Tags
TileList
Asked by
rugydp
Top achievements
Rank 1
Answers by
Stanimir
Telerik team
rugydp
Top achievements
Rank 1
Share this question
or