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

RadDataPager Slider

2 Answers 26 Views
ListView
This is a migrated thread and some comments may be shown as answers.
Angie
Top achievements
Rank 1
Angie asked on 27 May 2010, 10:48 PM
Hi!  I would like to set my listview up so that when I reach the last page, if the user clicks the increase button, it will take them back to the first page.

Is there a way I can do this using the RadDataPagerSliderField pager?

Thanks!

2 Answers, 1 is accepted

Sort by
0
Accepted
Nikolay Rusev
Telerik team
answered on 28 May 2010, 09:09 AM
Hello Angie,

You can achieve this behavior by using following code:
1.protected void Pager_FieldCreated(object sender, RadDataPagerFieldCreatedEventArgs e)
2.    {
3.        var slider = (RadSlider)e.Item.FindControl("PageSlider");
4.        slider.OnClientBeforeValueChange = "function(s,a){if(s.get_maximumValue() == s.get_value() && a.get_newValue() == a.get_oldValue()){a.set_cancel(true);s.set_value(0);}}";
5.    }


Regards,
Nikolay
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
Angie
Top achievements
Rank 1
answered on 28 May 2010, 06:37 PM
Thank you!
Tags
ListView
Asked by
Angie
Top achievements
Rank 1
Answers by
Nikolay Rusev
Telerik team
Angie
Top achievements
Rank 1
Share this question
or