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

hide arrow buttons

1 Answer 95 Views
Grid
This is a migrated thread and some comments may be shown as answers.
beeta one
Top achievements
Rank 1
beeta one asked on 07 Dec 2012, 08:57 AM
How to hide previous and first page arrow buttons on page 1and nextand last page arrows
On last page

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 07 Dec 2012, 09:03 AM
Hi,

Try the following code snippet.

CSS:
<style type="text/css">
       .RadFirstPage .rgPageFirst, .RadFirstPage .rgPagePrev
       {
           display: none !important;
       }
       .RadLastPage .rgPageNext, .RadLastPage .rgPageLast
       {
           display: none !important;
       }
</style>

C#:
protected void RadGrid1_ItemCreated(object sender, GridItemEventArgs e)
{
 if (e.Item is GridPagerItem)
 {
  GridPagerItem pagerItem=(GridPagerItem)e.Item;
  if (pagerItem.Paging.IsFirstPage)
  pagerItem.CssClass = "RadFirstPage";
  else if (pagerItem.Paging.IsLastPage)
  pagerItem.CssClass = "RadLastPage";
 }
}

Regards,
Princy.
Tags
Grid
Asked by
beeta one
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or