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

PagerComboBox

1 Answer 30 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Tina
Top achievements
Rank 1
Tina asked on 22 Nov 2011, 02:09 AM
I am using RadGrid with paging enable.I don't want to display the combobox.Tried with many CSS.Not working

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 22 Nov 2011, 04:55 AM
Hello Tina,

Try the following code snippet in ItemDataBound event.
C#:
protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)
{
 if (e.Item is GridPagerItem)
 {
   GridPagerItem item = (GridPagerItem)e.Item;
   RadComboBox combo = (RadComboBox)item.FindControl("PageSizeComboBox");
   combo.Visible = false;
 }
}

-Shinu.
Tags
General Discussions
Asked by
Tina
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or