Translate Advanced Options Pager

2 posts, 0 answers
  1. Ellis
    Ellis avatar
    28 posts
    Member since:
    Jun 2007

    Posted 28 Apr 2009 Link to this post

    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:
    1  Protected Sub RadGrid1_ItemDataBound(ByVal sender As ObjectByVal e As Telerik.Web.UI.GridItemEventArgs) Handles RadGrid1.ItemDataBound 
    2         If TypeOf e.Item Is Telerik.Web.UI.GridPagerItem Then 
    3             Dim lblGoToPage As Label = DirectCast(e.Item.FindControl("GoToPageLabel"), Label) 
    4             If Not lblGoToPage Is Nothing Then lblGoToPage.Text = "your text for PAGE:" 
    5             Dim lbGoToPage As Button = DirectCast(e.Item.FindControl("GoToPageLinkButton"), Button) 
    6             If Not lbGoToPage Is Nothing Then lbGoToPage.Text = "your text for GO" 
    7             Dim lblPageSize As Label = DirectCast(e.Item.FindControl("ChangePageSizeLabel"), Label) 
    8             If Not lblPageSize Is Nothing Then lblPageSize.Text = "your text for PAGE SIZE:" 
    9             Dim lbPageSize As Button = DirectCast(e.Item.FindControl("ChangePageSizeLinkButton"), Button) 
    10             If Not lbPageSize Is Nothing Then lbPageSize.Text = "your text for CHANGE" 
    11             Dim lblPageOf As Label = DirectCast(e.Item.FindControl("PageOfLabel"), Label) 
    12             lblPageOf.Text = lblPageOf.Text.Replace("of""your text for OF"
    13         End If 
    14     End Sub 

    Ellis
  2. Sebastian
    Admin
    Sebastian avatar
    9934 posts

    Posted 28 Apr 2009 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top