Forum
12:01
10/08/2009
Hello Tony,
I suggest to reduce a little the size of jqGrid by usage standard jQuery functions. For example one can use jQuery.parseXML (see the source code) is very close to the code of stringToDoc used by jqGrid. So it seems to me that one can replace the line of grid.base.js
to
and another line of grid.import.js
to
One can examine additionally the requirements of usage JsonXml.js (at least the most parts of the code) and the usage of $.jgrid.parse. It seems to me that one can remove all or some parts of the code and use standard methods which are now in jQuery.
Additionally it would be good to place directly on the jqGrid download page and in the documentation which versions (from, till) of jQuery are supported by which versions of jqGrid.
It seems to me that one can also remove now some from the functions declared and used in the jquery.fmatter.js module (for example $.fmatter.isNull which will be never used or $.fmatter.isUndefined). For exmaple $.fmatter.isUndefined will be used only inside of jquery.fmatter.js module. The line like this one
can be safe replaced to
or
All the changes which I suggest here are not really important, but I think that it's good to clean up code from time to time.
Best regards
Oleg
10:01
Moderators
30/10/2007
Hello Oleg,
You are absolutley right.
Will begin with this today.
Thanks.
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.
Most Users Ever Online: 715
Currently Online:
42 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.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66