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

[Solved] $t.grid.ModelBinder is undefined

1 Answer 22 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Bill
Top achievements
Rank 1
Bill asked on 13 Jul 2011, 06:10 AM
Hey Guys,

I have an MVC 3 application and I am using the Telerik MVC grid control. I pretty much copy and pasted the ajax editing example here http://demos.telerik.com/aspnet-mvc/grid/editingajax and just changed the model class the grid was using. I noticed that all of my urls for edit, delete, update and insert were wrong. The had some mode-edit or mode-delete query string. I read some forums and saw that this could happen if there was a javascript error, so I opened up chrome inspection tools and there was 1 error. The line of code that is crashing is on line 516 of telerik.grid.editing.js (grid.modelBinder = new $t.grid.ModelBinder();). When I hover over ModelBinder it is undefined. Please HELP!!!!

Thanks in advance!

1 Answer, 1 is accepted

Sort by
0
Bill
Top achievements
Rank 1
answered on 14 Jul 2011, 03:43 AM
Nevermind I figured it out, the script was rendered twice, once from the script registrar and I included it too.
Tags
Grid
Asked by
Bill
Top achievements
Rank 1
Answers by
Bill
Top achievements
Rank 1
Share this question
or