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

[Solved] Bug: Pager loses style

2 Answers 153 Views
Grid
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 07 Feb 2008, 11:15 PM
I have a pagerstyle that I set its fontsize = 12

this works untill there are enough elements to require paging, at which point prometheus stops outputing the inline style tag.

<

PagerStyle Mode="NextPrevAndNumeric" Position="TopAndBottom" AlwaysVisible="true" PagerTextFormat="Showing {2} - {3} of {5}: {4}" Font-Size="12px" Font-Bold="true" FirstPageImageUrl="/images/blank.gif" NextPageImageUrl="/images/blank.gif" LastPageImageUrl="/images/blank.gif" PrevPageImageUrl="/images/blank.gif"/>

in the source code I get this output for showing the pager, but only 1 page:
  <tr class="GridPager_Vista" style="font-size:12px;font-weight:bold;">
   <td colspan="13"><div class="PagerLeft_Vista">
    Showing 1 - 5 of 5: <span><img title="Previous Pages" src="/images/blank.gif" originalAttribute="src" originalPath="/images/blank.gif" originalAttribute="src" originalPath="/images/blank.gif" alt="Previous Pages" style="border-width:0px;" /></span>&nbsp;<span>1</span>&nbsp;<img title="Next Page" src="/images/blank.gif" originalAttribute="src" originalPath="/images/blank.gif" originalAttribute="src" originalPath="/images/blank.gif" alt="Next Page" style="border-width:0px;" />
   </div><div class="PagerRight_Vista">
    
   </div></td>
  </tr>

then when i get enough elements to page the source code is this:

  <tr class="GridPager_Vista">
   <td colspan="13"><div class="PagerLeft_Vista">
    Showing 1 - 2 of 5: <span><img title="Previous Pages" src="/images/blank.gif" originalAttribute="src" originalPath="/images/blank.gif" originalAttribute="src" originalPath="/images/blank.gif" alt="Previous Pages" style="border-width:0px;" /></span>&nbsp;<span>1</span>&nbsp;<a href="javascript:__doPostBack('ctl00$ctl00$Columns$PageCode$PageCode$RadGrid1$ctl00$ctl02$ctl00$ctl04','')">2</a>&nbsp;<a href="javascript:__doPostBack('ctl00$ctl00$Columns$PageCode$PageCode$RadGrid1$ctl00$ctl02$ctl00$ctl05','')">3</a>&nbsp;&nbsp;<a title="Next Page" originalAttribute="href" originalPath="javascript:__doPostBack('ctl00$ctl00$Columns$PageCode$PageCode$RadGrid1$ctl00$ctl02$ctl00$ctl04','')">2</a>&nbsp;<a href="javascript:__doPostBack('ctl00$ctl00$Columns$PageCode$PageCode$RadGrid1$ctl00$ctl02$ctl00$ctl05','')">3</a>&nbsp;&nbsp;<a title="Next Page" originalAttribute="href" originalPath="javascript:__doPostBack('ctl00$ctl00$Columns$PageCode$PageCode$RadGrid1$ctl00$ctl02$ctl00$ctl04','')">2</a>&nbsp;<a href="javascript:__doPostBack('ctl00$ctl00$Columns$PageCode$PageCode$RadGrid1$ctl00$ctl02$ctl00$ctl05','')">3</a>&nbsp;&nbsp;<a title="Next Page" originalAttribute="href" originalPath="javascript:__doPostBack('ctl00$ctl00$Columns$PageCode$PageCode$RadGrid1$ctl00$ctl02$ctl00$ctl05','')">3</a>&nbsp;&nbsp;<a title="Next Page" href="javascript:__doPostBack('ctl00$ctl00$Columns$PageCode$PageCode$RadGrid1$ctl00$ctl02$ctl00$ctl06','')"><img src="/images/blank.gif" originalAttribute="href" originalPath="javascript:__doPostBack('ctl00$ctl00$Columns$PageCode$PageCode$RadGrid1$ctl00$ctl02$ctl00$ctl06','')"><img src="/images/blank.gif" originalAttribute="href" originalPath="javascript:__doPostBack('ctl00$ctl00$Columns$PageCode$PageCode$RadGrid1$ctl00$ctl02$ctl00$ctl06','')"><img src="/images/blank.gif" originalAttribute="src" originalPath="/images/blank.gif" alt="Next Page" style="border-width:0px;" /></a>
   </div><div class="PagerRight_Vista">
    
   </div></td>
  </tr>

*************
Also, is there a way to disable the pager icons without resorting to blank images?

2 Answers, 1 is accepted

Sort by
0
Pavel
Telerik team
answered on 12 Feb 2008, 08:28 AM
Hello John,

I have uploaded a sample project to demonstrate that the pager style is working. Please examine it and let me know if I am missing something out.
As for disabling the pager icons - you don't need to specify a blank image. Setting FirstPageImageUrl="" should be enough.

Best regards,
Pavel
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
John
Top achievements
Rank 1
answered on 13 Feb 2008, 06:33 PM
Your version works for me too, but my version of the code, has this issue where the outputted code omits the style tag, when I have more time I'll try and figure out how its set to generate this.
Tags
Grid
Asked by
John
Top achievements
Rank 1
Answers by
Pavel
Telerik team
John
Top achievements
Rank 1
Share this question
or