1

Closed

Sorting Does Not Work with null data

description

Some fields are 'null' and show up as a blank entry in the grid. However when sorting it will give an error. Changed the following info:
 
Line 348 of the telerik.extensions.js
From:
                        data.sort(sort_by(params[0], params[1] == 'desc', function(a) { return a.toString().toUpperCase() }));
To:
                        data.sort(sort_by(params[0], params[1] == 'desc', function (a) { if (a == null) { a = "";  } return a.toString().toUpperCase() }));
 
This solved the problem.
Closed Sep 30, 2011 at 8:54 PM by jddevight

comments

BaldProgrammer wrote Aug 4, 2011 at 8:02 PM

Just noticed the above only applies to the 'release' version, and the bug does not exist in the latest in source code. My apologies. You can close this.

jddevight wrote Sep 30, 2011 at 8:53 PM

Thanks for catching this! I'll add it to the next checkin.

wrote Sep 30, 2011 at 8:54 PM

wrote Feb 14, 2013 at 1:02 AM

wrote May 16, 2013 at 6:11 AM