Using NextPrevAndNumeric mode, doesn't display change pagesize combobox.

2 posts, 0 answers
  1. sudheer
    sudheer avatar
    109 posts
    Member since:
    Dec 2008

    Posted 14 Apr 2009 Link to this post

    Hi All,

             I am using RadGrid in which skin is Vista, mode="NextPrevAndNumeric" in PagerStyle tab. But it is showing only paging(1,2,3..) without the pagesize dropdown.

             Herewith i have attached my RadGrid for your vision. Please reply as soon as possible.


    Code:

    <asp:UpdatePanel ID="Update1" runat="server">
                            <ContentTemplate>

                                <telerik:RadGrid Width="99.5%" ID="grdIDR" runat="server" OnNeedDataSource="callthis"
                                    AllowPaging="True" AllowSorting="True" Skin="Vista" AutoGenerateColumns="False" ShowFooter="true"
                                    enableajax="True" GridLines="Vertical" ClientSettings-Resizing-AllowColumnResize="true"
                                    ClientSettings-Resizing-EnableRealTimeResize="true" PageSize="5" OnPageIndexChanged="grdIDR_PageIndexChanged"
                                    OnItemDataBound="grdIDR_ItemDataBound" MasterTableView-CommandItemDisplay="Top">
                                    <PagerStyle mode="NextPrevAndNumeric" AlwaysVisible="true" />  
                                    <ClientSettings AllowColumnsReorder="True" ReorderColumnsOnClient="True">
                                        <Selecting AllowRowSelect="True" />
                                        <ClientEvents />
                                    </ClientSettings>
                                    <ExportSettings FileName="PaymentScheduleGrid" OpenInNewWindow="True" ExportOnlyData="True">
                                    </ExportSettings>
                                    <MasterTableView GroupLoadMode="Client" TableLayout="Fixed" Width="100%">
                                        <NoRecordsTemplate>
                                            <asp:Label ID="lblNRF" runat="server" Text="No Records to display."></asp:Label>
                                        </NoRecordsTemplate>                                    
                                        <CommandItemTemplate>
                                            <table width="100%" style="background-color: whitesmoke; border-color: whitesmoke;"
                                                border="0">
                                                <tr>
                                                    <td align="right">
                                                        <asp:LinkButton ID="linkbutton1" ToolTip="Export to Excel" runat="server" ForeColor="black">
                                                        <img title="export to excel"
                                                                                        style="border:0px;vertical-align:middle;" alt=""
                                                                                        src="../images/excel.jpg"  width="13" height="13" />&nbsp;Export to Excel
                                                        </asp:LinkButton>
                                                    </td>
                                                </tr>
                                            </table>
                                        </CommandItemTemplate>
                                        <Columns>
                                            <telerik:GridBoundColumn DataField="sno" SortExpression="sno" HeaderText="S.No."
                                                UniqueName="sno">
                                                <ItemStyle HorizontalAlign="Left" Width="45px" />
                                                <HeaderStyle HorizontalAlign="Center" Width="45px" />
                                            </telerik:GridBoundColumn>
                                            <telerik:GridBoundColumn DataField="Name" SortExpression="Name" HeaderText="Customer Name"
                                                UniqueName="Name">
                                                <ItemStyle HorizontalAlign="Left" />
                                                <HeaderStyle HorizontalAlign="Center" />
                                            </telerik:GridBoundColumn>
                                            <telerik:GridBoundColumn DataField="CustID" SortExpression="CustID" HeaderText="Cust ID"
                                                UniqueName="CustID">
                                                <ItemStyle HorizontalAlign="Center" Width="80px" />
                                                <HeaderStyle HorizontalAlign="Center" Width="80px" />
                                            </telerik:GridBoundColumn>
                                            <telerik:GridHyperLinkColumn DataTextField="ESIID" SortExpression="ESIID" HeaderText="ESIID"
                                                UniqueName="ESIID">
                                                <ItemStyle HorizontalAlign="Center" Width="145px" />
                                                <HeaderStyle HorizontalAlign="Center" Width="145px" />
                                            </telerik:GridHyperLinkColumn>
                                            <telerik:GridBoundColumn DataField="Zone" SortExpression="Congestion Zone" HeaderText="Congestion Zone"
                                                UniqueName="Congestion Zone">
                                                <ItemStyle HorizontalAlign="Left" Width="125px" />
                                                <HeaderStyle HorizontalAlign="Center" Width="125px" />
                                            </telerik:GridBoundColumn>
                                            <telerik:GridBoundColumn DataField="FlowDate" SortExpression="FlowDate" HeaderText="Flow Date"
                                                UniqueName="FlowDate">
                                                <ItemStyle HorizontalAlign="Center" Width="160px" />
                                                <HeaderStyle HorizontalAlign="Center" Width="160px" />
                                            </telerik:GridBoundColumn>
                                            <telerik:GridBoundColumn DataField="ProfileName" SortExpression="ProfileName" HeaderText="Profile Name"
                                                UniqueName="ProfileName">
                                                <ItemStyle HorizontalAlign="Left" />
                                                <HeaderStyle HorizontalAlign="Center" />
                                            </telerik:GridBoundColumn>
                                        </Columns>
                                    </MasterTableView>
                                </telerik:RadGrid>

                            </ContentTemplate>
                        </asp:UpdatePanel>

    Thanks & Regards
    sudheer
  2. Dimo
    Admin
    Dimo avatar
    8456 posts

    Posted 14 Apr 2009 Link to this post

    Hello Sudheer,

    Your RadGrid declaration works as expected on my side. Make sure that you are using RadControls version 2009.1.+ in this case.

    Best wishes,
    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.
Back to Top