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_Related Related Topics sp_TopicIcon
Date having wrong parsed with srcformat: "ISO8601Long"
05/02/2014
12:46
Avatar
OlegK
Germany
Member
Members
Forum Posts: 1255
Member Since:
10/08/2009
sp_UserOfflineSmall Offline

Hello Tony,

you fixed removing 'T' character inside of parseDate and replaced it to #. Additionally you included lines

// old lang files
if(opts.parseRe === undefined ) {
    opts.parseRe = /[#%\\\\\\/:_;.,\\t\\s-]/;

The problem is that language files like grid.locale-en.js for example have already parseRe defined with T (/[Tt%\\\\\\/:_;.,\\t\\s-]/) instead of # as (see here). So the paring of ISO dates are inclorrect. It's correct only in case of usage old language files (from version 4.5.0 or before).

To fix the problem one should either remove common line with definition of parseRe from all language files or fix the value.

Best regards
Oleg

P.S. Do you plan to publish new version of jqGrid next time? 

05/02/2014
16:25
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello Oleg,

Many Thanks. Will fix the lang files.

We will publish the new release soon. I just prepare the docs for the new features.

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.

05/02/2014
17:34
Avatar
OlegK
Germany
Member
Members
Forum Posts: 1255
Member Since:
10/08/2009
sp_UserOfflineSmall Offline

It's very good news about new version!

After publishing of the version I would like to post you some pull requests with my suggestions how all icons and texts used in jqGrid can be configured more flexibly. The goal is providing of simple way to choose Font Awesome icons or other vector based icons instead of standard jQuery UI icons. The current code contains the most icons directly in the code and it inserts "ui-icon" class additionally. I think that the code can use the function like $.jgrid.icons.getClass("iconName") or everywhere in the code (for example $.jgrid.icons.getClass("sortAsc"), $.jgrid.icons.getClass("pagerFirst") or $.jgrid.icons.getClass("navRefresh")). The value of this of $.jgrid.icons.getClass could be set to DOM of the grid, so that it can use current options of the current grid. In the same way one can easy create one grid with jQuery UI icons and another one with Font Awesome icons. In the same way the method $.jgrid.icons.getText could be used everywhere to get information from language specific files like grid.locale-en.js. The implementation of $.jgrid.icons.getText could read the information from static objects which structure could be close to the current language specific files grid.locale-XX.js. Usage of function would provide maximal flexibility and allows to place grids on the page with different language per grid.

Such kind of changes need be good tested. So I don't think that it would be reasonable to post the changes before new release of jqGrid.

Best regards
Oleg

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
28 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