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

Error when selecting a different page size in radgrid

1 Answer 78 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Casey
Top achievements
Rank 1
Casey asked on 26 Jul 2011, 04:40 PM
I am using the lates telerik DLL Q2 2011 for .Net 3.5 and am receiving the error below when testing a radgrid with paging enabled. This error is thrown when I manually change the page size from the default (20) to another page size. Are there any known issues with this function or is there a possible bug in my code?
 

Server Error in '/' Application.

Unable to cast object of type 'Telerik.Web.UI.RadGrid' to type 'Telerik.Web.UI.GridTableView'.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidCastException: Unable to cast object of type 'Telerik.Web.UI.RadGrid' to type 'Telerik.Web.UI.GridTableView'.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[InvalidCastException: Unable to cast object of type 'Telerik.Web.UI.RadGrid' to type 'Telerik.Web.UI.GridTableView'.]
   Telerik.Web.UI.RadGrid.RaisePostBackEvent(String eventArgument) +2874
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +175
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565

1 Answer, 1 is accepted

Sort by
0
Pavel
Telerik team
answered on 27 Jul 2011, 08:52 AM
Hi Casey,

I cannot reproduce such problem with this online example. Could you provide more details and paste some of your code/markup here?

Greetings,
Pavel
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Grid
Asked by
Casey
Top achievements
Rank 1
Answers by
Pavel
Telerik team
Share this question
or