How to change RadPivotGrid Page size combobox values ?

2 posts, 1 answers
  1. Fabiana
    Fabiana avatar
    2 posts
    Member since:
    Sep 2015

    Posted 16 Sep 2015 Link to this post


    I am evaluating RadPivotGrid control...And I would like to know how to define my values in Page size combobox?

    I saw thar added 10, 20 and 50 in this combo....



  2. Answer
    Eyup avatar
    2941 posts

    Posted 18 Sep 2015 Link to this post

    Hi Fabiana,

    You can achieve this requirement using the following approach:
    protected void RadPivotGrid1_PreRender(object sender, EventArgs e)
        PivotGridPagerItem pager = RadPivotGrid1.GetItems(PivotGridItemType.PagerItem)[0] as PivotGridPagerItem;
        RadComboBox combo = pager.FindControl("PageSizeComboBox") as RadComboBox;
        List<int> pageSizes = new List<int>() { 10, 15, 30 };
        if (!pageSizes.Contains(RadPivotGrid1.PageSize))
        foreach (int pageSize in pageSizes)
            combo.Items.Add(new RadComboBoxItem(pageSize.ToString(), pageSize.ToString()));
        combo.SelectedValue = RadPivotGrid1.PageSize.ToString();

    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