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

Disable/Enable RadGrid Pager Buttons

2 Answers 124 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Prasad
Top achievements
Rank 1
Prasad asked on 25 Oct 2012, 09:59 AM
Hi Team,

Can we disable and Enable the Rad Grid Paging Buttons .

If I am In 1st page then we have to disable Previous and First buttons

similary If we are in last page then we have to diable Next and Last buttons

and

Can we show tool tips for Grid page index numbers 1,2,3................

please give ur advise as soon as possible ....

Regards,
Prasad

2 Answers, 1 is accepted

Sort by
0
Accepted
Jayesh Goyani
Top achievements
Rank 2
answered on 25 Oct 2012, 12:12 PM
Hello,

<style type="text/css">
       .RadFirstPage .rgPageFirst, .RadFirstPage .rgPagePrev
       {
           display: none !important;
       }
       .RadLastPage .rgPageNext, .RadLastPage .rgPageLast
       {
           display: none !important;
       }
 </style>
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";
        }
 
    }


Thanks,
Jayesh Goyani
0
Prasad
Top achievements
Rank 1
answered on 25 Oct 2012, 02:15 PM
Thanq Jayesh It's woking

Can we give tooltip for the pageNumbers in paging(1,2,3. ....) of Rad grid ..
Tags
Grid
Asked by
Prasad
Top achievements
Rank 1
Answers by
Jayesh Goyani
Top achievements
Rank 2
Prasad
Top achievements
Rank 1
Share this question
or