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

want to change text of Pagers 'GO' and 'Change' Buttons

2 Answers 27 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ismail
Top achievements
Rank 1
Ismail asked on 21 Sep 2011, 09:52 PM
I want to change the text for the pager buttons
which we use to select the page number ['Go'] and number of records per page ['Change']
want to change the text to something else . can I do that?

2 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 22 Sep 2011, 05:11 AM
Hello Ismail,

Try the following code snippet to change the text of Pagers 'GO' and 'Change'.
C#:
protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)
{
  if (e.Item is GridPagerItem)
   {
     Button btn = (Button)e.Item.FindControl("GoToPageLinkButton");
     btn.Text = "CustomGoText";
     Button btn1 = (Button)e.Item.FindControl("ChangePageSizeLinkButton");
     btn1.Text = "CustomChangeText";
   }
}

Thanks,
Princy.
0
Ismail
Top achievements
Rank 1
answered on 22 Sep 2011, 01:37 PM
works good
I was trying to do the same but didint know the control properties :(
Thanks alot :)
Tags
Grid
Asked by
Ismail
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Ismail
Top achievements
Rank 1
Share this question
or