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

Paging Label Changing

3 Answers 118 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Appu
Top achievements
Rank 1
Appu asked on 07 Jul 2009, 08:34 AM
Hi
      I am using rad grid having paging option , i would like to change or customize  Page Size text to Report Size. So is there any way to control page size label in the Pager Panel.

Regards,
Appu

3 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 07 Jul 2009, 09:07 AM
Hello Appu,

You can try out the following code to access the PageSize label in the pager row and thereby change its text:
c#:
protected void RadGrid1_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e) 
    { 
        if (e.Item is GridPagerItem) 
        { 
            GridPagerItem pagerItem = (GridPagerItem)e.Item; 
            Label lbl = (Label)pagerItem.FindControl("ChangePageSizeLabel"); 
            lbl.Text = "Report Size:"
        } 
    } 
        

Thanks
Princy.
0
Appu
Top achievements
Rank 1
answered on 07 Jul 2009, 09:30 AM
Thanks it is fine..
      I need one more help whether we can add more than three items to PageComboBox. I am trying to add like that but it throws an out of index exception error.

I need to add 50,100,500,750,100,1500,2000 out of the value page size fixed in the Radgrid.


Appu
0
Shinu
Top achievements
Rank 2
answered on 07 Jul 2009, 10:37 AM
Hi Appu,

Checkout the forum link in which Telerik had provided a runnable application that demonstrates the needed approach. In that create new radcomboboxitems according to the requirement (with custom values) and adds to the radcombobox item collection. Please download the application and give it a try.
Customized Page size

-Shinu.
Tags
Grid
Asked by
Appu
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Appu
Top achievements
Rank 1
Shinu
Top achievements
Rank 2
Share this question
or