- Home
- Forum
- ASP.NET MVC (Classic)
- Cannot set property 'control' of undefined
Cannot set property 'control' of undefined
Sorting a grid results in a JavaScript error: Cannot set property 'control' of undefined
I have the following code:
var grid = Html.Syncfusion().Grid<Proposal>("Proposals");
grid.ActionMode(ActionMode.Server);
grid.Caption("Proposals");
grid.EnableAlternateRowStyling();
grid.ClientSideRecordSelectionEvent("goToProposalDetails");
grid.EnableRowHover(true);
grid.Datasource(Model);
grid.EnableSorting();
grid.Render();
Why am I getting this error?
This seems to be related to not having the MS AJAX js files loaded. These seem to be required.
Thank you for using Syncfusion products.
We need to add MicrosoftAjax script to load grid. Please refer to the following Online UG link:
We have prepared the sample for your reference and the same can be downloaded from the following link:
http://www.syncfusion.com/downloads/Support/DirectTrac/97663/Sample1604780311.zip
Could you please try the above sample and get back to us whether you are able to reproduce the issue? If not, could you please give more information or by reproducing the issue in the above sample so that we could sort out the issue and provide you with solution. The information provided would be of great help in resolving the issue.
Please try this and let us know if you have any queries.
Regards,
Eswari S
This was it, thanks.
Hi Tony,
Thanks for your update.
We are happy to hear that issue has been resolved.
Please let us know if you need any further assistance.
Regards,
Eswari S
- 4 Replies
- 2 Participants
-
TB Tony Basallo
- Jan 20, 2013 11:22 PM UTC
- Feb 14, 2013 11:40 AM UTC