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

hide pager

2 Answers 164 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Tina
Top achievements
Rank 1
Tina asked on 15 Feb 2012, 08:36 AM
When paging is enabled in radgrid, a combobox is displayed along with pager.How to hide the combobox?

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 15 Feb 2012, 08:56 AM
Hello,

Try the following code.
C#:
protected void grid_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.
0
Tsvetoslav
Telerik team
answered on 15 Feb 2012, 09:00 AM
Hi Tina,

Attached is a small sample. You might also want to review the following help topics:
http://www.telerik.com/help/aspnet-ajax/grid-basic-paging.html  (and the rest related to paging)

Hope it helps. 

Regards,
Tsvetoslav
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
Grid
Asked by
Tina
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Tsvetoslav
Telerik team
Share this question
or