I am trying to implement a searchable grid in a MVC application using MVCContrib and jquery datatable.
When I run the application I get a "SCRIPT5007: Unable to get value of the property 'className': object is null or undefined" error. It appears to have a problem with the .Attributes(id => "example") code and the end of the grid. If I remove this line it loads fine but then i don't have the search box for the grid. Any help would be greatly appreciated. Thanks!
@{
Entities db = new Entities();
IEnumerable<XXXX.DAL.User> User = db.User.ToList();
}
I'm afraid I don't have a clue about MVCContrib, but is the HTML being created for a TABLE with TBODY and THEAD? Are you getting any control errors? Can you use the debugger to get a debug trace please?