Hi,
I use radgrid with these settings
Me.ResultsGrid.MasterTableView.PagerStyle.Mode = GridPagerMode.NextPrevAndNumeric
Me.ResultsGrid.MasterTableView.PagerStyle.Position = GridPagerPosition.Top
Me.ResultsGrid.MasterTableView.PagerStyle.PageButtonCount = 10
I want to hide the border for the pager, as the pager is placed on top, the top-line caused by the styles are not in sync with my design,
so i want to hide the border.
I tried setting
Me.ResultsGrid.MasterTableView.PagerStyle.BorderStyle = WebControls.BorderStyle.None
but no use.
How i can set it from code-behind?
I use radgrid with these settings
Me.ResultsGrid.MasterTableView.PagerStyle.Mode = GridPagerMode.NextPrevAndNumeric
Me.ResultsGrid.MasterTableView.PagerStyle.Position = GridPagerPosition.Top
Me.ResultsGrid.MasterTableView.PagerStyle.PageButtonCount = 10
I want to hide the border for the pager, as the pager is placed on top, the top-line caused by the styles are not in sync with my design,
so i want to hide the border.
.RadGrid_Default .rgPager .rgPagerCell
border-color:#828282 -moz-use-text-color #EEEEEE #EEEEEE;
border-style:solid none solid solid;
border-width:1px 0 1px 1px;
I tried setting
Me.ResultsGrid.MasterTableView.PagerStyle.BorderStyle = WebControls.BorderStyle.None
but no use.
How i can set it from code-behind?
7 Answers, 1 is accepted
0
Hello Naresh,
An easier way to hide the pager border is with CSS, not with VB code:
CSS
div.RadGrid_Default .rgPager .rgStatus,
div.RadGrid_Default .rgPager .rgPagerCell
{
border:0;
}
Kind regards,
Dimo
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.
An easier way to hide the pager border is with CSS, not with VB code:
CSS
div.RadGrid_Default .rgPager .rgStatus,
div.RadGrid_Default .rgPager .rgPagerCell
{
border:0;
}
Kind regards,
Dimo
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.
0

Naresh
Top achievements
Rank 1
answered on 09 Jun 2009, 05:35 AM
How can I change the display order of the pager contents
for ex. from
Change page: {4} | Displaying page {0} of {1}, items {2} to {3} of {5}.
to
items {2} to {3} of {5} Change page: {4} | Displaying page {0} of {1}, .
changing the order as above didn't work, " items {2} to {3} of {5}" is missing.
for ex. from
Change page: {4} | Displaying page {0} of {1}, items {2} to {3} of {5}.
to
items {2} to {3} of {5} Change page: {4} | Displaying page {0} of {1}, .
changing the order as above didn't work, " items {2} to {3} of {5}" is missing.
0

Princy
Top achievements
Rank 2
answered on 09 Jun 2009, 06:07 AM
Hello Naresh,
You can try customizing the PagerTextFormat to display the required text in the pager as shown below:
aspx:
Thanks
Princy.
You can try customizing the PagerTextFormat to display the required text in the pager as shown below:
aspx:
<telerik:RadGrid ID="RadGrid" runat="server" AutoGenerateColumns="true" AllowPaging="true" PageSize="10" DataSourceID="SqlDataSource1"> |
<MasterTableView DataSourceID="SqlDataSource1"> |
<PagerStyle Mode="NextPrevAndNumeric" PagerTextFormat="Change page: {4} Items {2} to {3} of {5} | Displaying page {0} of {1}" AlwaysVisible="true" /> |
Thanks
Princy.
0

Naresh
Top achievements
Rank 1
answered on 09 Jun 2009, 06:21 AM
I already tried it but it didn't work. the content before {4} is missing.
0

Peter
Top achievements
Rank 1
answered on 06 Mar 2015, 01:24 AM
I used the CSS above (with !important) but the black border is still showing around the Pager?
0

Peter
Top achievements
Rank 1
answered on 06 Mar 2015, 01:33 AM
Seems the border around the pager is "rgMasterTable".
How do I kill the one around the page? This doesn't seem to work (might not be supported in IE9 or is wrong):
.RadGrid table.rgMasterTable:last-child {
border: none !important;
}
How do I kill the one around the page? This doesn't seem to work (might not be supported in IE9 or is wrong):
.RadGrid table.rgMasterTable:last-child {
border: none !important;
}
0
Hello,
You can remove the border around the pager with the following CSS rule:
Regards,
Pavlina
Telerik
You can remove the border around the pager with the following CSS rule:
div.RadGrid,
div.RadGrid td.rgPagerCell
{
border
:
0
none
;
}
Regards,
Pavlina
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.