RadDataPager Slider

3 posts, 1 answers
  1. Angie
    Angie avatar
    101 posts
    Member since:
    Jan 2008

    Posted 27 May 2010 Link to this post

    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. Answer
    Nikolay Rusev
    Admin
    Nikolay Rusev avatar
    2284 posts

    Posted 28 May 2010 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Angie
    Angie avatar
    101 posts
    Member since:
    Jan 2008

    Posted 28 May 2010 Link to this post

    Thank you!
Back to Top