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" /> 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
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" /> 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