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

Radgrid Pager style mode="Advanced" is not working

3 Answers 309 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ajay
Top achievements
Rank 1
Ajay asked on 14 Jan 2015, 06:19 AM
Hi i am having issues while implementing the "Go to page" in Telerik grid, i tried using  http://demos.telerik.com/aspnet-ajax/grid/examples/functionality/paging/basic-paging/defaultcs.aspx. 

I tested by checking different modes like PageStyle Mode to "Slider" , "Numeric"  , "NextPrevious" which are working fine . But when it comes to "Advanced" and "NextPrevNumericAndAdvanced" i am not able to see the "Go to page" option in grid. Even i tried setting Enable view state of grid to "true" .

You can See my design here:

    <telerik:RadGrid ID="grdResFaxes" runat="server" EnableViewState="true" AllowSorting="True"
                                            AllowFilteringByColumn="False" OnNeedDataSource="grdResFaxes_NeedDataSource"
                                            Skin="Metro" CellSpacing="0" GridLines="None" Width="99%" PageSize="12" OnItemCommand="grdResFaxes_ItemCommand">
                                           <%-- <PagerStyle Mode="Slider" AlwaysVisible="true" Position="Bottom"></PagerStyle>--%>
                                            <ExportSettings IgnorePaging="true" Excel-FileExtension="xls" FileName="Faxes" OpenInNewWindow="true">
                                                <Excel Format="Biff" />
                                            </ExportSettings>
                                            <MasterTableView AutoGenerateColumns="false" CommandItemDisplay="Top" DataKeyNames="DocumentId,NonAdhererId"
                                                AllowNaturalSort="false" AllowPaging="true" CommandItemSettings-ShowExportToExcelButton="true"
                                                CommandItemSettings-ShowAddNewRecordButton="false" PagerStyle-Mode="Slider"
                                                PagerStyle-Position="Bottom">
                                                <Columns>
                                                    <telerik:GridBoundColumn DataField="RecDate" FilterControlAltText="Filter ReceivedDate column"
                                                        HeaderText="Received Date" SortExpression="RecDate" UniqueName="RecDate" ItemStyle-Width="20%"
                                                        FilterControlWidth="75px">
                                                      .
                                                      .
                                                      .
                                                      .

                                                   </telerik:RadGrid>
 

3 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 15 Jan 2015, 05:25 PM
Hi,

You should also change the PagerStyle-Mode in the grid MasterTableView to be NextPrevNumericAndAdvanced:
<MasterTableView AutoGenerateColumns="false" CommandItemDisplay="Top" DataKeyNames="DocumentId,NonAdhererId"
            AllowNaturalSort="false" AllowPaging="true" CommandItemSettings-ShowExportToExcelButton="true"
            CommandItemSettings-ShowAddNewRecordButton="false" PagerStyle-Mode="NextPrevNumericAndAdvanced"
            PagerStyle-Position="Bottom">
        </MasterTableView>

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.

 
0
Ajay
Top achievements
Rank 1
answered on 16 Jan 2015, 06:46 PM
Hi Pavlina thanks for your reply.
But you should have to read my question properly. My problem is clearly mentioned there. I said in question clearly Pager style mode "Slider", "Numeric", "NextPrevious" were working fine and "Advanced" , "NextPrevNumericAndAdvanced" are not working . And you gave answer as Set PagerStyle-Mode="NextPrevNumericAndAdvanced",  come on how do you expect me to try "Slider", "Numeric" and "NextPrevious" with out knowing property of PagerStyle_Mode.

The problem is when i set the PagerStyle_Mode="NextPrevNumericAndAdvanced" Go to page option is not getting visible on grid. But it is there in grid design when i viewed the source.

              div.RadGrid .rgPager .rgAdvPart {
                       
                       display: none;
                                                                   }                                                                                                                                               I hope i made my question clear, Why my grid is not showing Go to page when i had set PagerStyle_Mode to "NextPrevNumericAndAdvanced" ??       
























0
Accepted
Pavlina
Telerik team
answered on 21 Jan 2015, 03:44 PM
Hello Ajay,

I tested the code you provided in the first post and Advanced pager modes are working without problems on my end as you can see from the video linked below:
http://screencast.com/t/hevwEbyT

I have also attached my test page for your reference. Check it out and let me know what is the difference in your case.

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.

 
Tags
Grid
Asked by
Ajay
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Ajay
Top achievements
Rank 1
Share this question
or