Mahesh Babu
Top achievements
Rank 1
Mahesh Babu
asked on 10 Aug 2009, 08:38 AM
Hi,
I have a radGrid which I want to be multilingual. I want to change the pager text based on the culture. I am unable to find properties which does this. Given below are the text that is displayed on my radgrid pager which i want to change based on culture.
Change page label
Go link
Page size label
Change link
Displaying page 1 of 3, items 1 to 10 of 21 label.
could you please let me know what properties that needs to be set on the radgrid in order to change the above values??
Thanks,
Mahesh
I have a radGrid which I want to be multilingual. I want to change the pager text based on the culture. I am unable to find properties which does this. Given below are the text that is displayed on my radgrid pager which i want to change based on culture.
Change page label
Go link
Page size label
Change link
Displaying page 1 of 3, items 1 to 10 of 21 label.
could you please let me know what properties that needs to be set on the radgrid in order to change the above values??
Thanks,
Mahesh
4 Answers, 1 is accepted
0
Accepted
Princy
Top achievements
Rank 2
answered on 10 Aug 2009, 10:05 AM
Hello Mahesh,
You can try accessing the controls from the code behind and then change the texts respectively:
c#:
Thanks
Princy.
You can try accessing the controls from the code behind and then change the texts respectively:
c#:
protected void RadGrid1_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e) |
{ |
if (e.Item is GridPagerItem) |
{ |
GridPagerItem pager = (GridPagerItem)e.Item; |
Label lbl = (Label)pager.FindControl("ChangePageSizeLabel"); |
lbl.Text = "CustomText1"; |
Label lbl1 = (Label)pager.FindControl("GoToPageLabel"); |
lbl1.Text = "CustomText2"; |
Label lbl2 = (Label)pager.FindControl("PageOfLabel"); |
lbl2.Text = "CustomText3"; |
Button link1 = (Button)pager.FindControl("GoToPageLinkButton"); |
link1.Text = "CustomText4"; |
Button link2 = (Button)pager.FindControl("ChangePageSizeLinkButton"); |
link2.Text = "CustomText5"; |
RadGrid1.PagerStyle.PagerTextFormat = "{4} CustomText {2} CustomText {3} CustomText {5}"; |
} |
} |
Thanks
Princy.
0
Mahesh Babu Immedisetty
Top achievements
Rank 1
answered on 31 Aug 2009, 12:13 PM
Hi,
I need some help on PageOfLabel field. I want to display something like this:
of {TotalPages}
Please help.
Thanks,
Mahesh
I need some help on PageOfLabel field. I want to display something like this:
of {TotalPages}
Ex: of 13
so that it will display with GoToPageLabel like this : Page: {pageNumber} of {TotalPages}.
Please help.
Thanks,
Mahesh
0
Princy
Top achievements
Rank 2
answered on 01 Sep 2009, 05:18 AM
Hi Mahesh,
I am afraid whether I understood your question correctly. When you set the the PagerStyle-Mode to NextPrevNumericAndAdvanced the PageOfLabel is displaying of {TotalPages} . You may also refer the following help article which explains how to access the pager elements.
Accessing the elements of advanced type pager
Thanks
Princy
I am afraid whether I understood your question correctly. When you set the the PagerStyle-Mode to NextPrevNumericAndAdvanced the PageOfLabel is displaying of {TotalPages} . You may also refer the following help article which explains how to access the pager elements.
Accessing the elements of advanced type pager
Thanks
Princy
0
mahesh
Top achievements
Rank 1
answered on 22 Jul 2010, 03:22 PM
I am Loading RadGrid on a button click Event using JSON Webservice approach.
as below.
in case of 1 page i supposed to show pager info as "2 items in 1 page ".
and in case of 1 record i supposed to show pager info as "1 item in 1 page ".
Kindly Guide me .....
I need to achieve this using javascript.
Thanks in advance.
1 items in 1 pages
as below.
function testit()
{
var ctrl = $find('<%=clientRadGrid.ClientID%>');
ctrl.ClientSettings.DataBinding.Location = "searchservice.asmx";
ctrl.ClientSettings.DataBinding.SelectMethod = "GetData";
var tableView = $find("<%= clientRadGrid.ClientID %>").get_masterTableView();
tableView.rebind();
return false;
}
My Webservice Returns 2 records in that case Pager Info Text is "2 items in 1 pages "
in case of 1 page i supposed to show pager info as "2 items in 1 page ".
and in case of 1 record i supposed to show pager info as "1 item in 1 page ".
Kindly Guide me .....
I need to achieve this using javascript.
Thanks in advance.
1 items in 1 pages