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

RadGrid Event Handling Issue and IE8

3 Answers 70 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Edward Sudit
Top achievements
Rank 1
Edward Sudit asked on 10 Feb 2012, 05:04 PM
We are having a serious problem with event handling of the RadGrid control on the server side when using IE8.  We are currently using the latest release of Telerik UI, 2011.3.1115.40.
The problem is that when the events "PageIndexChanged" and "PageSizeChanged" are fired, we receive the following error message from the browser:
    "Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: Unable to cast object of type 'System.EventArgs' to type 'Telerik.Web.UI.GridPageSizeChangedEventArgs'."

This only happens with IE8.  When we use IE9 or FireFox for the same application, there is no error being thrown.  This is a big problem in our production environment since we have a large number of users that are using the IE8 browser.

Thank you in advance for any help you can provide.

Ed Sudit

3 Answers, 1 is accepted

Sort by
0
Tsvetina
Telerik team
answered on 14 Feb 2012, 04:56 PM
Hello Edward,

If you do not ajaxify your grid, you will see that a server-side error is thrown in all browsers with the same message as the javascript one that you see in IE8. To fix it, change the EventArgs type to the required one and the error message will stop showing.

Regards,
Tsvetina
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Edward Sudit
Top achievements
Rank 1
answered on 14 Feb 2012, 05:35 PM
Changing the EventArgs type will not work since we need to get the selected page index from the client when they change the page they want to view.  The grid is currently attached to a RadAjaxManagerProxy in the <UpdatedConrols> section as a <Telerik:AjaxUpdatedControl> setting.
0
Tsvetina
Telerik team
answered on 15 Feb 2012, 02:19 PM
Hello Edward,

Can you paste the code that errors out and let us know what is the eventual result expected from its execution? We may be able to suggest you a different approach that would work without causing exceptions.

Kind regards,
Tsvetina
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
Grid
Asked by
Edward Sudit
Top achievements
Rank 1
Answers by
Tsvetina
Telerik team
Edward Sudit
Top achievements
Rank 1
Share this question
or