0
votes

I have a kendo grid. I am doing SERVER SORTING In parameter map when sorting at third click I have the error: Cannot read property 'field' of undefined option.sort[0] is undefined Why?

1
for all fields you have get this error? you use foreign key field?Iraj
parameterMap: function(option){ option.sort[0] is undefined at third click. And I cannot send to the server post.... why? At third click I should have field name with dir asc. How can I rename the fild?studentsss

1 Answers

1
votes

The third click gets to unsorted state which means the sort array is empty. Hence getting its first item returns undefined.