ello I've got some problem wih the paging of Telerik RadGrid Control! When it's first page - there is no problem it loads me three rows as I have givenpageSize property value - "3". But when I try to get to the second page - it gives me an error:
Here is my aspx file
<
And here is my cs File with only one function in which I get the data for datasource from a web service and bind it to the radGrid:
39e - JavaScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 404Here is my aspx file
<
telerik:RadGrid runat="server" ID="RadGrid1" AutoGenerateColumns="false" AllowCustomPaging="false" AllowPaging="True" PageSize="3" OnPageIndexChanged="RadGrid2PageIndexChanged" OnNeedDataSource="radGridOnNeedDataSource" ><br> <PagerStyle Mode="NextPrevAndNumeric" Position="TopAndBottom" PageSizeControlType="RadComboBox"></PagerStyle><br> <MasterTableView><br> <Columns><br> <telerik:GridBoundColumn DataField="ArticlegroupID" HeaderText="ArticleGrouipID" UniqueName="groupID"> <br> </telerik:GridBoundColumn><br><br> <telerik:GridBoundColumn DataField="SpecialWord" HeaderText="ProductDescription" UniqueName="ProductDescr" ><br> </telerik:GridBoundColumn> <br> <telerik:GridImageColumn DataType="System.String" DataImageUrlFields="ImageFile"<br> AlternateText="Customer image" <br> ImageAlign="Middle" ImageHeight="100px" ImageWidth="82px" HeaderText="Image Column"><br> </telerik:GridImageColumn> <br> </Columns><br> </MasterTableView><br><br><br><br> </telerik:RadGrid>And here is my cs File with only one function in which I get the data for datasource from a web service and bind it to the radGrid:
protected void radGridOnNeedDataSource(object source, GridNeedDataSourceEventArgs e)
{ RadGrid p_RadIconProducts = this.FindControl("RadGrid1") as RadGrid;
List<WebServiceBeaMenu> radTileIcon = new List<WebServiceBeaMenu>();
radTileIcon = MvcBeaDAL.WebServiceBea.GetArticle(p_menuID, p_articlegroupID, 1).ToList(); p_RadIconProducts.DataSource = radTileIcon;<br>
p_RadIconProducts.MasterTableView.VirtualItemCount = radTileIcon.Count;<br> p_RadIconProducts.CurrentPageIndex = p_RadIconProducts.MasterTableView.CurrentPageIndex;<br><br><br> }