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

Pager Position=TopAndBottom weird behaviour

1 Answer 32 Views
Grid
This is a migrated thread and some comments may be shown as answers.
DEWISME Vincent
Top achievements
Rank 1
DEWISME Vincent asked on 04 Nov 2010, 03:52 PM
Hello,

I'm using a RadGrid with a Pager whose custom values are added in the ItemDataBound item by:

protected void RG_Results_ItemDataBound(object sender, GridItemEventArgs e)
{
    if (e.Item is GridPagerItem)
    {
        RadComboBox pagerCombo = e.Item.FindControl("PageSizeComboBox") as RadComboBox;
        pagerCombo.Items.Clear();
        RadComboBoxItem item = new RadComboBoxItem("10", "10");
        item.Attributes.Add("ownerTableViewId", RG_Results.MasterTableView.ClientID);
        pagerCombo.Items.Add(item);
        item = new RadComboBoxItem("20", "20");
        item.Attributes.Add("ownerTableViewId", RG_Results.MasterTableView.ClientID);
        pagerCombo.Items.Add(item);
        item = new RadComboBoxItem("50", "50");
        item.Attributes.Add("ownerTableViewId", RG_Results.MasterTableView.ClientID);
        pagerCombo.Items.Add(item);
        item = new RadComboBoxItem("100", "100");
        item.Attributes.Add("ownerTableViewId", RG_Results.MasterTableView.ClientID);
        pagerCombo.Items.Add(item);
        item = new RadComboBoxItem("200", "200");
        item.Attributes.Add("ownerTableViewId", RG_Results.MasterTableView.ClientID);
        pagerCombo.Items.Add(item);
        pagerCombo.FindItemByText(e.Item.OwnerTableView.PageSize.ToString()).Selected = true;
    }
}

The top pager works fine.

But the bottom pager has a weird behavior:

On first click on the down arrow, it only shows the first value ("10" in my code sample).

I have to click twice to get all the values

(Show attachment for screenshot)

Does anyone have an idea on how to fix this ?

Thanks a lot for your response

Vincent

1 Answer, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 09 Nov 2010, 12:44 PM
Hi Vincent,

I followed your scenario in order to replicate the described issue, but to no avail. Please find attached to this message a sample test project which is working as expected and let me know what is the difference in your scenario.

Best wishes,
Pavlina
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
Tags
Grid
Asked by
DEWISME Vincent
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Share this question
or