I have a grid that I am loading with a linq query to my database. On page load it works great and returns dated now + 21 days. The users need to ability to then enter there own dates to search between. It is all working great right up to the point the data returned from the controller needs to get into the grid. It just won't load.
Relevent code of grid
.DataSource(dataSource => dataSource
.Read(read => read
sort.Add(p => p.ID).Ascending();
sort.Add(p => p.Date).Ascending();
g.Add(c => c.ID);
When the user enters 2 dates and clicks search the function is run. The grid is cleared and a loading message appears goes away and the grid remains blank.
fromDate = $(
toDate = $(
When I debug I see the controller sending the view the grid, it just does not load.