Last post May 06, 2011 12:42 AM by incubator138@hotmail.com
Member
58 Points
213 Posts
Apr 13, 2011 07:21 AM|tushartayalster|LINK
hello friends...
i want to use paging in telerik:radgrid.
please tell me how to use the paging. i can use the code below--
<telerik:RadGrid ID="rgOrders" runat="server" AutoGenerateColumns="False" Width="98%" Skin="Hay" GridLines="None" onitemcommand="rgOrders_ItemCommand" AllowPaging="true" PageSize="5" OnNeedDataSource="rgOrders_NeedDataSource"> <MasterTableView Width="97%"><PagerStyle Mode="NextPrevAndNumeric" /><%--<CommandItemSettings ExportToPdfText="Export to Pdf"></CommandItemSettings>--%><%--<RowIndicatorColumn FilterControlAltText="Filter RowIndicator column"><HeaderStyle Width="50px"></HeaderStyle></RowIndicatorColumn> <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column"><HeaderStyle Width="50px"></HeaderStyle></ExpandCollapseColumn>--%> <Columns> <telerik:GridDateTimeColumn HeaderText="Order Date" UniqueName="OrderDate" DataField="OrderDate" DataFormatString="{0:MM/dd/yyyy}" > </telerik:GridDateTimeColumn> <telerik:GridBoundColumn HeaderText="Order Reference" UniqueName="OrderRef" DataField="OrderReference"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="Name" HeaderText="Product Name" UniqueName="ProductName"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="LeftEye" HeaderText="Left Eye" UniqueName="LeftEye"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="RightEye" HeaderText="Right Eye" UniqueName="RightEye"> </telerik:GridBoundColumn> <telerik:GridButtonColumn HeaderText="Details" CommandName="ViewDetails" Text="View"></telerik:GridButtonColumn> </Columns> <%--<EditFormSettings><EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn></EditFormSettings>--%></MasterTableView>
when i can click on 1 2 3 4 5 button it will work correctly but when i can click on |< < > >| like buttons then it will not work.
pls pls pls help me out..........
Contributor
2876 Points
1172 Posts
Apr 13, 2011 08:14 AM|chandu123|LINK
Your code is not in correct format can you use INSERT CODE option to post the code.
140 Points
70 Posts
May 06, 2011 12:42 AM|incubator138@hotmail.com|LINK
Hello,
I have tried to replicate the issue but no avail. Please go through the following help article and demo.
http://www.telerik.com/help/aspnet-ajax/grid-pageritem.html
http://demos.telerik.com/aspnet-ajax/grid/examples/programming/custompaging/defaultcs.aspx
Thanks,
Shinu.
Member
58 Points
213 Posts
how to use paging
Apr 13, 2011 07:21 AM|tushartayalster|LINK
hello friends...
i want to use paging in telerik:radgrid.
please tell me how to use the paging. i can use the code below--
<telerik:RadGrid ID="rgOrders" runat="server" AutoGenerateColumns="False" Width="98%" Skin="Hay" GridLines="None" onitemcommand="rgOrders_ItemCommand" AllowPaging="true" PageSize="5" OnNeedDataSource="rgOrders_NeedDataSource"> <MasterTableView Width="97%"><PagerStyle Mode="NextPrevAndNumeric" /><%--<CommandItemSettings ExportToPdfText="Export to Pdf"></CommandItemSettings>--%><%--<RowIndicatorColumn FilterControlAltText="Filter RowIndicator column"><HeaderStyle Width="50px"></HeaderStyle></RowIndicatorColumn>
<ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column"><HeaderStyle Width="50px"></HeaderStyle></ExpandCollapseColumn>--%>
<Columns> <telerik:GridDateTimeColumn HeaderText="Order Date" UniqueName="OrderDate" DataField="OrderDate" DataFormatString="{0:MM/dd/yyyy}" > </telerik:GridDateTimeColumn> <telerik:GridBoundColumn HeaderText="Order Reference" UniqueName="OrderRef" DataField="OrderReference"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="Name" HeaderText="Product Name" UniqueName="ProductName"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="LeftEye" HeaderText="Left Eye" UniqueName="LeftEye"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="RightEye" HeaderText="Right Eye" UniqueName="RightEye"> </telerik:GridBoundColumn> <telerik:GridButtonColumn HeaderText="Details" CommandName="ViewDetails" Text="View"></telerik:GridButtonColumn> </Columns>
<%--<EditFormSettings><EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn></EditFormSettings>--%></MasterTableView>
when i can click on 1 2 3 4 5 button it will work correctly but when i can click on |< < > >| like buttons then it will not work.
pls pls pls help me out..........
Tushar Tayal
Remember to click “Mark as Answer” to the post that helps you.
Contributor
2876 Points
1172 Posts
Re: how to use paging
Apr 13, 2011 08:14 AM|chandu123|LINK
Your code is not in correct format can you use INSERT CODE option to post the code.
Chandrasekhar (MCTS) .NET framework 3.5, ASP.NET Applications
If my ANSWER helps you in solving your problem MARK IT AS ANSWER
Member
140 Points
70 Posts
Re: how to use paging
May 06, 2011 12:42 AM|incubator138@hotmail.com|LINK
Hello,
I have tried to replicate the issue but no avail. Please go through the following help article and demo.
http://www.telerik.com/help/aspnet-ajax/grid-pageritem.html
http://demos.telerik.com/aspnet-ajax/grid/examples/programming/custompaging/defaultcs.aspx
Thanks,
Shinu.