Hello,
I'm using a RadGrid with a Pager whose custom values are added in the ItemDataBound item by:
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
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