We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

ASP.NET MVC 4 Grid Javascript error on column sort

Thread ID:





109626 Jun 24,2013 04:27 PM UTC Jun 26,2013 05:55 AM UTC ASP.NET MVC (Classic) 2
Tags: Grid
Sorin Rojea
Asked On June 24, 2013 04:27 PM UTC

My grid looks like this






.Column(column =>


column.Add(m => m.MandateID).HeaderText("MandateID").Visible(false);

column.Add(m => m.Name).HeaderText("Mandate Name");

column.Add(m => m.DocumentOwnerUser).HeaderText("Mandate Owner");

column.Add(m => m.SeniorManagerUser).HeaderText("Senior Manager");

column.Add(m => m.EffectiveDate).HeaderText("Effective Date");

column.Add(m => m.VersionNumber).HeaderText("Version Number");

column.Add(m => m.LastApprovedDate).HeaderText("Last Approved Date");

column.Add(m => m.LastModifiedDate).HeaderText("Last Modified Date");

column.Add(m => m.Status).HeaderText("Mandate Status");





.ClientSideEvents(events => events.OnRecordSelectionEvent("OnMandateSelected"))



My _Layout.cshtml is below


<!DOCTYPE html>



<meta charset="utf-8" />

<meta name="viewport" content="width=device-width" />






.Register(component =>





@RenderSection("ScriptSection", required: false)




@RenderSection("scripts", required: false)

<script type ="text/javascript">

$(function () {

$('#page').css("min-height", $(document).height());






When I click on a grid column to sort I get this Javascript error


Unhandled exception at line 32, column 47477 in http://localhost:59060/MvcResourceHandler.axd?k=js&r=['460735373','857160043','1508235827','-1699388191','-387825988','-645683054','808493855','808795855','1971557338','288472848']&minify=True

0x80004005 - htmlfile: Unspecified error.


at this line




Sorin Rojea
Replied On June 24, 2013 05:36 PM UTC

Found what the problem was: I had to add a method in the controller class that accepts HTTP verb POST and returns GridActions.




Satheeskumar S [Syncfusion]
Replied On June 26, 2013 05:55 AM UTC

Hi Sorin Rojea,



Thanks for the update.


We are happy to hear that your issue has been resolved.


Please let us know if you have any other concerns.




Satheeskumar S


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon