I am using Kendo UI Web v2012.3.1315.
On my grid there is a DOB field for Date of Birth. I have attached the DOB values that show in the grid.
I build my data as a string in JSON format here is an example:
The columns are also defined in JSON:
Same with the Schema Model:
The DOB column sorts mostly fine. In decending order the blanks are all at the end of the grid which is okay. But in Ascending order the blanks start at position 49 and position 48 is incorrect:
You would think Ascending would put the blanks at the start and not mess up the sort order of one item.
Any ideas?
On my grid there is a DOB field for Date of Birth. I have attached the DOB values that show in the grid.
I build my data as a string in JSON format here is an example:
{
"intReportID"
:
"1245"
,
"sysReportNum"
:
"12-336"
,
"sysAddress"
:
"9TH Ave SE & Hill St SE"
,
"sysReportDate"
:
"1/5/2012 8:57:00 PM"
,
"intUnitType"
:
"1"
,
"vchLastName"
:
"PROUSE"
,
"vchFirstName"
:
"CRYSTAL"
,
"chrGender"
:
"F"
,
"datDOB"
:
"3/3/1979 12:00:00 AM"
,
"bolVehOwnerSame"
:
"False"
,
"Gender"
:
"Female"
}
{ field:
"datDOB"
, title:
"DOB"
, format:
"{0:M/d/yyyy}"
}
{fields: {
"datDOB"
: { type:
"date"
}}}
47: 11/11/1958
48: 1/11/1969
49-62: blank
63: 3/25/1959
Any ideas?
11 Answers, 1 is accepted
0
Jayesh Goyani
Top achievements
Rank 2
answered on 15 Mar 2013, 09:32 AM
Hello,
Please update your js file, now this issue is resolved.
http://jsfiddle.net/jayeshgoyani/pke9q/2/
Note : In Previous version it applied sorting only on data (means it ignores the null value).
Thanks.
Jayesh Goyani
Please update your js file, now this issue is resolved.
http://jsfiddle.net/jayeshgoyani/pke9q/2/
Note : In Previous version it applied sorting only on data (means it ignores the null value).
Thanks.
Jayesh Goyani
0
Jason
Top achievements
Rank 1
answered on 15 Mar 2013, 04:16 PM
Which file(s) should I update? I am using the latest version do you want me to use the beta one?
0
Jayesh Goyani
Top achievements
Rank 2
answered on 15 Mar 2013, 04:33 PM
Hello,
Sorry, its my mistake.
I also used same version.
http://cdn.kendostatic.com/2012.3.1315/js/kendo.all.min.js
I am not able to reproduce this issue.
Thanks,
Jayesh Goyani
Sorry, its my mistake.
I also used same version.
http://cdn.kendostatic.com/2012.3.1315/js/kendo.all.min.js
I am not able to reproduce this issue.
Thanks,
Jayesh Goyani
0
Jason
Top achievements
Rank 1
answered on 15 Mar 2013, 04:54 PM
The js files I am using are:
jquery.min.js (jQuery v1.8.2 jquery.com)
kendo.web.min.js (v2012.3.1315)
They were in the Kendo UI Web Q3 2012/js folder. I don't see the 'all' file.
jquery.min.js (jQuery v1.8.2 jquery.com)
kendo.web.min.js (v2012.3.1315)
They were in the Kendo UI Web Q3 2012/js folder. I don't see the 'all' file.
0
Jayesh Goyani
Top achievements
Rank 2
answered on 15 Mar 2013, 05:00 PM
Hello,
Please check my attached files for reference.
Thanks,
Jayesh Goyani
Please check my attached files for reference.
Thanks,
Jayesh Goyani
0
Jayesh Goyani
Top achievements
Rank 2
answered on 15 Mar 2013, 05:02 PM
Hello,
if possible then please create separate test page/project to test this functionality.
Thanks,
Jayesh Goyani
if possible then please create separate test page/project to test this functionality.
Thanks,
Jayesh Goyani
0
Jason
Top achievements
Rank 1
answered on 15 Mar 2013, 09:07 PM
Here is my Fiddle page.
http://jsfiddle.net/NqrDS/
Set the page size to 50 and page 1 and 2 will have the block of blanks in Chrome. In IE the blanks are not sorted at all they are distributed throughout.
http://jsfiddle.net/NqrDS/
Set the page size to 50 and page 1 and 2 will have the block of blanks in Chrome. In IE the blanks are not sorted at all they are distributed throughout.
0
Hamlet
Top achievements
Rank 1
answered on 28 Aug 2015, 11:58 AM
After 2 years from this question, I have the same issue now. Any ideas ?
0
Jason
Top achievements
Rank 1
answered on 28 Aug 2015, 06:01 PM
I took a look at our website and the issue is still present. I have not updated the Kendo controls though so I am probably way out of date with the code. When sorting descending the nulls/blanks are at the end, but the ascending sort puts them in the middle of the result set (in Chrome).
Nice to know it wasn't only me!
0
Hamlet
Top achievements
Rank 1
answered on 28 Aug 2015, 08:35 PM
Thanks for Your response mate. Yup. You're not alone with that issue. I don't know what's the problem.
0
Sahir
Top achievements
Rank 1
answered on 13 Aug 2016, 02:51 PM
I have a date sorting issue in my application. Kindly help me f you can?
https://www.telerik.com/account/support-tickets/view-ticket?threadid=1056679
https://stackoverflow.com/questions/38896594/why-kendo-ui-grid-date-is-not-sorting-properly