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

Translate Advanced Options Pager

1 Answer 44 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ellis
Top achievements
Rank 2
Ellis asked on 28 Apr 2009, 10:41 AM

Requirements

RadControls version

2009.1.402.35
.NET version

2.0
Visual Studio version

2008 Team System
programming language

VB.NET
browser support

all browsers supported by RadControls


Translate Advanced Options Pager
(I know there are a lot of post and telerik documents explain this methode (better then here), but for this component's version, they seems to be incompleted)

To translate the pager's advanced options, by server side code, you can declare the grid's ItemDataBound event as follow:
 Protected Sub RadGrid1_ItemDataBound(ByVal sender As ObjectByVal e As Telerik.Web.UI.GridItemEventArgs) Handles RadGrid1.ItemDataBound 
        If TypeOf e.Item Is Telerik.Web.UI.GridPagerItem Then 
            Dim lblGoToPage As Label = DirectCast(e.Item.FindControl("GoToPageLabel"), Label) 
            If Not lblGoToPage Is Nothing Then lblGoToPage.Text = "your text for PAGE:" 
            Dim lbGoToPage As Button = DirectCast(e.Item.FindControl("GoToPageLinkButton"), Button) 
            If Not lbGoToPage Is Nothing Then lbGoToPage.Text = "your text for GO" 
            Dim lblPageSize As Label = DirectCast(e.Item.FindControl("ChangePageSizeLabel"), Label) 
            If Not lblPageSize Is Nothing Then lblPageSize.Text = "your text for PAGE SIZE:" 
            Dim lbPageSize As Button = DirectCast(e.Item.FindControl("ChangePageSizeLinkButton"), Button) 
            If Not lbPageSize Is Nothing Then lbPageSize.Text = "your text for CHANGE" 
            Dim lblPageOf As Label = DirectCast(e.Item.FindControl("PageOfLabel"), Label) 
            lblPageOf.Text = lblPageOf.Text.Replace("of""your text for OF"
        End If 
    End Sub 

Ellis

1 Answer, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 28 Apr 2009, 10:49 AM
Hello Ellis,

I am moving your code library post in the RadGrid public forums. This information is documented in the following help article of the product:

http://www.telerik.com/help/aspnet-ajax/grdaccessingdefaultpagerbuttons.html
 
Best regards,
Sebastian
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Grid
Asked by
Ellis
Top achievements
Rank 2
Answers by
Sebastian
Telerik team
Share this question
or