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

Bug in OnError textStatus argument field

2 Answers 58 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.
SEAN
Top achievements
Rank 1
SEAN asked on 19 Oct 2011, 02:33 AM
The documentation lists the values for the textStatus field of the grid OnError event as error, timeout, parsererror, and modelstateerror. There seems to be a typo in the grid and list Javascript code because the textStatus value is parseeror instead of parsererror when an unexpected response occurs.

Sean

2 Answers, 1 is accepted

Sort by
0
Brian
Top achievements
Rank 1
answered on 21 Oct 2011, 10:27 PM

I am also getting “parseeror” for the textStatus value instead of parseerror for the Grid onError event. I receive it (see print screen 01_mvc_grid_parseror) when I try to sort the columns by clicking on a column header. The final message I get is “Error! The requested URL did not return JSON.” (see print screen 02_mvc_grid_parseror).

 

I know the sorting is working because I have the default sorting happening on load via

 

.Sortable(sorting => sorting.OrderBy(sortOrder => sortOrder.Add(o => o. LogId).Descending()))

 


Any help would be would be greatly appreciated.

0
Brian
Top achievements
Rank 1
answered on 21 Oct 2011, 10:51 PM

Well I found my issue, it had nothing to do with my previous post, but, I manually updated the “parseeror” values in the telerik.grid.min.js and telerik.list.min.js to read parseerror.

 

For those who may be interested, the fix for the column headers sorting issue ended up being a mistype on my part. I put the wrong controller name in the dataBinding.Server().Select  and dataBinding.Ajax().Select statements. Hope this helps someone else.

Tags
Grid
Asked by
SEAN
Top achievements
Rank 1
Answers by
Brian
Top achievements
Rank 1
Share this question
or