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

Pagerstyle AlwaysVisible="true" not work?

3 Answers 308 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Pam Redrum
Top achievements
Rank 1
Pam Redrum asked on 30 Mar 2010, 09:34 AM
I want to see pager even if there is only one page, so I add AlwaysVisible="true"  to the PagerStyle, but seems no effect.
What's wrong with it?

<telerik:RadGrid ID="RGPlaylist" Skin="ParagalloSkin" EnableEmbeddedSkins="false" CssClass="list_one" runat="server" Width="800px"  
                    GridLines="None" AutoGenerateColumns="false" 
                    ForeColor="#333333" 
                    AllowSorting="True" PageSize="10" 
                    DataKeyNames = "PlaylistID" OnPreRender="RGPlaylist_PreRender" OnNeedDataSource="RGPlaylist_NeedDataSource" 
                    AllowPaging="true" AllowFilteringByColumn="true"  AllowAutomaticDeletes="true"
                    <ItemStyle CssClass="rows" /> 
                    <AlternatingItemStyle CssClass="alternate_rows" /> 
                    <GroupingSettings CaseSensitive="false" /> 
 
...... 
 
<FooterStyle BackColor="#fff" Font-Bold="True" ForeColor="White" /> 
            <HeaderStyle BackColor="#b6b6b6" Font-Bold="True" CssClass="toprow" /> 
                    <PagerStyle Mode="NumericPages" ShowPagerText="true" CssClass="gridPager" BackColor="#ececea" ForeColor="Gray" AlwaysVisible="true"  PagerTextFormat="Endre side: {4} Side {0} av {1}, produkt {2} til {3} av totalt {5}"/> 
                    <SortingSettings SortToolTip="Klikk her for å sortere" SortedAscToolTip="sortert stigende" 
                SortedDescToolTip="sortert desc" /> 
               </telerik:RadGrid> 
 


3 Answers, 1 is accepted

Sort by
0
Accepted
Pavlina
Telerik team
answered on 30 Mar 2010, 04:03 PM
Hi Pam,

In order to achieve your goal you should set PagerStyle-AlwaysVisible property of the MasterTableView:
ASPX:
<telerik:RadGrid ID="RadGrid1" AllowPaging="true" PageSize="5" runat="server" OnNeedDataSource="RadGrid1_NeedDataSource">  
     <MasterTableView>                      
          <PagerStyle AlwaysVisible="true"/>  
     ....................

I hope this helps.

Greetings,
Pavlina
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Foenix
Top achievements
Rank 1
answered on 30 Mar 2010, 08:32 PM
Actually, I found that you have to use properties of MasterTableView, if you want to have a working pager. It seems to me that the properties of the tag <PagerStyle> are not really important. At least, properties AlwaysVisible and Mode do not work, whereas properties PagerStyle-AlwaysVisible and PagerStyle-Mode work perfectly.

So, my suggestion is:
<MasterTableView PagerStyle-AlwaysVisible="true" PagerStyle-Mode="NextPrevNumericAndAdvanced"

0
Pam Redrum
Top achievements
Rank 1
answered on 31 Mar 2010, 06:36 AM
ok, this have effects. and I must move all pagestyle in the MasterTableView to style it.
Tags
Grid
Asked by
Pam Redrum
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Foenix
Top achievements
Rank 1
Pam Redrum
Top achievements
Rank 1
Share this question
or