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
Help Testing jqGrid 3.4 beta
11/01/2009
09:33
Avatar
admin
Admin
Members
Forum Posts: 66
Member Since:
05/05/2007
sp_UserOfflineSmall Offline

After lot of hard work we are pleased to announce a 3.4 beta release of jqGrid. This version should not be used in production, since it will be quite possible to change some things. Please post any bugs or recommendations in the forum.
The release can be downloaded from Releses menu. Whitin the package there is a readme file which describes all changes and how to use the new things.
Here in brief what is new

New modules
grid.import.js - jqGrid import/export module
json2.js - json utils used in import/export module
JsonXml.js - xmljson utils used in import/export module
jquery.fmatter.js - jqGrid formater - thanks to Joshua Burnett.

All these modules are included in jquery.jqGrid.js

New Theme
Thanks to Joshua Burnett now we have a steel theme

What is New

  • Custom and predefined cell formating (links,checkboxes,mail, numbers, currency, date, select)
    Also added new parameter in colModel - formatter
    See how to use at end of this document
  • Dynamically load the grid configuration and data from xml, xmlstring, jsonstring
    Added two new methods jqGridImport(params) and jqGridExport(params);
    See how to use at end of this document
  • Dynamic scrolling grid. Added new parameter scroll (default false). When enabled the pager
    elements are disabled and we can use the vertical scrollbar to load data. This option
    currently should be used carefully on big data sets, since I do not have developed
    inteligent swaper. That mean that all the data is loaded and a lot of memory will be used
    if the dataset if big. You must be a sure to have a initial verticall scroll in grid.
    I.e. the height auto should not be set.
  • To the colModel is added new Parameter 'label'. This set the header content of the grid.
    That mean - If you do not want to use colNames array (to set header cells) you can set
    the names via label property. In case the label is not set we use the name.
    All this is true if the colNames array is empty.
    If the colNames array is set (not empty) they have higer priority.
  • Added new param multiboxonly (boolean). Default false. This option work only with
    multiselect. When both are set to true we have selection only when the checkbox is clicked
    (yahoo style)
  • Removed dynamically added title when we mouseover the column. We set it during
    the insertion of data. This allow to change the title dynamically. Typicall
    this can be used in afterInsertRow event combined with setCell method - see below
    the new added parameter in setCell;
  • To setCell method is added 5 parameter (array) - attribute properties
    which sets the attribute properies of the cell. Example
    jQuery("#mygrid").setCell("rowid25","Myname","NewData",'',{title:'mynewtitle'});
    Set new Title of the cell specified with rowid25 and name Myname
  • The select values in editing module can now be set as array too.
    That mean if we have
    colModel : [
    {name:'mynale',edittype:'select' editoptions:{value:"1:One;2:Two"}}
    ...
    ]
    This can be used this way
    colModel : [
    {name:'myname',edittype:'select', editoptions:{value:{1:'One',2:'Two'}}}
    ...
    ]

    Both are correct and can be used as select definition.

  • Added second parameter in setSelection - (onselectrow) (true or false)
    default is true. If set to false the onSelectRow is not lunched;
  • The sorttypes when data is local are now compatible with formater. (see below).
  • When multiselect is set and we use onRightClickRow the row is not selected.
  • Subgrid Channges
    Added new methods
    -- expandSubgridRow(rowid) - expand dynamically a subgrid row with the id = rowid
    -- collapseSubGridRow(rowid) collapse dynamically a subgrid row with the id = rowid
    -- toggleSubGridRow(rowid) toggle dynamically a subgrid row with the id = rowid
    -- subGridJson(json, sid), subGridXml(xml, subid) (see below how to use these methods)
  • Added new parameter subgridtype. This allow us to load subgrid as service.
    Typically this parameter should be used only when the data provider for the subgrid is service.
    If not set it is equal of datatype parameter
  • In editing modules when requered is false and other checking is provided we do not
    alert a message when the data is empty.
    Example
    colModel: [
    {...editrules:{required:false,number:true..}...}
    ...
    ]
    In this case when the data is not filled by the user the alert message do not
    apper - i.e. in this case this is valid input.
18/01/2009
05:58
Avatar
zchermit
zchermit
Member
Members
Forum Posts: 4
Member Since:
15/01/2009
sp_UserOfflineSmall Offline

Hi, Tony!

I am fresh in JQuery and jqGrid.
But I like both;)
The excellent and useful work!
Thank you!

As for the subject. It looks like I found a small bug ...

--- js/grid.base.js.orig    Sun Jan 11 14:33:42 2009
+++ js/grid.base.js    Sun Jan 18 13:37:48 2009
@@ -570,7 +570,7 @@
                     if (cssp){
                         if(typeof cssp == 'string') {$(tcell).addClass(cssp);} else {$(tcell).css(cssp);}
                     }
-                    if(typeof attrp == 'object') {$(tcell).attr(cssp);}
+                    if(typeof attrp == 'object') {$(tcell).attr(attrp);}
                 }
             }
         });

Asche zu Asche...

19/01/2009
02:18
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Thank you very much (copy paste problem 🙂 ). Fixed.

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.

20/01/2009
11:37
Avatar
dunx
dunx
Member
Members
Forum Posts: 11
Member Since:
16/01/2009
sp_UserOfflineSmall Offline

If multiselect and multiboxonly are true, then onCellSelect action no longer fires.

onDblClick works fine, so perhaps an onClick or onCellClick would be a solution.

22/01/2009
10:18
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

I will correct this behaviour. Thank you.

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/01/2009
11:20
Avatar
dunx
dunx
Member
Members
Forum Posts: 11
Member Since:
16/01/2009
sp_UserOfflineSmall Offline

Tony, that's great.

Presumably that will go in to the next Beta. Can you post here when that's done please?

24/01/2009
01:33
Avatar
kshfi
Member
Members
Forum Posts: 9
Member Since:
24/01/2009
sp_UserOfflineSmall Offline

1st, thank you. I found your grid addon yesterday, started using 3.3. Now I have this 3.4beta with jquery 1.3.1.

If like to use “Live data man.-> Navigator” (example), I need to add jqModal.css

themes/steel/grid.css
themes/jqModal.css (copied from 3.3)

and also jquery.jqGrid.js add two include
        { include: true, incfile:'jqDnR.js',minfile: 'jqDnR.js'}, //
        { include: true, incfile:'jqModal.js',minfile: 'jqModal.js'}, //

Then it works.

In the future, is that so that this Brice Burgess execellent addon must include separately ? If it so, I hope that example include this info.

I didn't find from demos possibilities to look example so that you will see the same in standalone full example (html, css, js, body, …), easier to see addon's and so on.

Great addon, I'll continue to test my ideas …

-jukka-

26/01/2009
22:12
Avatar
daveyoi
daveyoi
Member
Members
Forum Posts: 8
Member Since:
18/12/2008
sp_UserOfflineSmall Offline

Havent checked the whole plugin but if you are using jQuery 3.1 be aware that the @ has been depreciated fully from [@attr] selectors. 

I found 2 entries when using onSelectAll in grid.base.js

Line 1232 : $("[@id^=jqg_]",ts.rows).attr("checked",true);

Line 1242 : $("[@id^=jqg_]",ts.rows).attr("checked",false);

These cause an exception to be thrown... simply remove the @s to fix.

Everything else seems to have migrated perfectly well Tony Wink

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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