Hi,
I need to change the items in the paging radCombobox.
I have tried this, the items is changed visually but nothing happens when I click and choosing another item!
I need to change the items in the paging radCombobox.
I have tried this, the items is changed visually but nothing happens when I click and choosing another item!
| protected void radGridCompanies_ItemDataBound(object sender, GridItemEventArgs e) |
| { |
| if (e.Item is GridPagerItem) |
| { |
| GridPagerItem pager = (GridPagerItem)e.Item; |
| RadComboBox PageSizeCombo = (RadComboBox)e.Item.FindControl("PageSizeComboBox"); |
| PageSizeCombo.Items.Clear(); |
| PageSizeCombo.Items.Add(new RadComboBoxItem("10")); |
| PageSizeCombo.Items.Add(new RadComboBoxItem("20")); |
| PageSizeCombo.Items.Add(new RadComboBoxItem("50")); |
| PageSizeCombo.Items.Add(new RadComboBoxItem("100")); |
| PageSizeCombo.FindItemByText(e.Item.OwnerTableView.PageSize.ToString()).Selected = true; |
| } |
| } |