Programmatically change settings

2 posts, 0 answers
  1. Stein
    Stein avatar
    25 posts
    Member since:
    Apr 2008

    Posted 30 Oct 2015 Link to this post

    Is it somehow possible to programmatically change for example PageSizeText or the list of PageSizes for the RadDataPager?
  2. Eyup
    Eyup avatar
    2941 posts

    Posted 03 Nov 2015 Link to this post

    Hi Stein,

    You can use the following approach to achieve this requirement:
    protected void RadDataPager1_Init(object sender, EventArgs e)
        RadDataPager pager = (RadDataPager)sender;
        RadDataPagerPageSizeField field = pager.Fields.OfType<RadDataPagerPageSizeField>().FirstOrDefault();
        field.PageSizeText = "Success";
        field.PageSizes = new int[] { 10, 25, 60, 100 };

    Hope this helps. Please give it a try and let me know if it works for you.

    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. DevCraft R3 2016 release webinar banner
Back to Top