Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
Can't Sort Date Column with empty cells
08/09/2009
17:27
Avatar
Jay
Guest
Guests

I've run across an issue where trying to sort a date column that has missing dates causes the sort to fail. It's mostly sorted, but the empty values are interspersed in the column and some of the dates before and after an empty value are out of order relative to other nearby dates. If I fill in these empty columns with data, then the code below works as expected.

jQuery("#list").jqGrid({

...

{name:'collected', index:'collected', width:102, formatter:'date', formatoptions:{srcformat:'d-M-Y',newformat:'d-M-Y'}, sorttype: 'date', datefmt: 'dd-M-Y', align:'right'},

...

09/09/2009
05:20
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

Hello,

Thanks. Will fix this.

Regards

Tony

For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.

22/02/2010
17:00
Avatar
Mue
Germany
New Member
Members
Forum Posts: 1
Member Since:
22/02/2010
sp_UserOfflineSmall Offline

Hi all,

The bug as described in the mail from Jay still exist in the newest version. Every blank date field isn't touch in the sort algorithm. I've taste it with different format options, but the issue is always the same. The block with values in the date field is sorted correct, every other stays as it is. I think the sort algorithm needs only to extend to test for blank dates. It would be very nice if the bug could be eliminated.

Thanks and best regards

Mue

23/02/2010
10:53
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

Hello,

Thanks for this. Also fixed. Will be published soon.

Best Regards

Tony

For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.

25/04/2011
05:09
Avatar
tjp
Member
Members
Forum Posts: 3
Member Since:
11/02/2011
sp_UserOfflineSmall Offline

This is still not fixed. Any ETA on when it will be?

06/01/2012
23:38
Avatar
Stu
Member
Members
Forum Posts: 3
Member Since:
22/08/2011
sp_UserOfflineSmall Offline

Has anyone looked at this?  I have a bunch of data where some of the dates are blank so it does not sort correctly. 

09/01/2012
16:48
Avatar
Stu
Member
Members
Forum Posts: 3
Member Since:
22/08/2011
sp_UserOfflineSmall Offline

Stu said:Has anyone looked at this?  I have a bunch of data where some of the dates are blank so it does not sort correctly. 


Any suggestions?  My data is all in the format "dd/mm/yyyy".  I tried formatting empty values as "  /  /    " but that fails as well. 

The only hack that I could find to work was to have empty dates as "01/01/1901" which works, but it is a hack and confusing.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
40 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

OlegK: 1255

markw65: 179

kobruleht: 144

phicarre: 132

YamilBracho: 124

Renso: 118

Member Stats:

Guest Posters: 447

Members: 11373

Moderators: 2

Admins: 1

Forum Stats:

Groups: 1

Forums: 8

Topics: 10592

Posts: 31289

Newest Members:

, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information