{"id":30,"date":"2009-01-11T17:32:57","date_gmt":"2009-01-11T15:32:57","guid":{"rendered":"http:\/\/www.trirand.com\/blog\/?p=30"},"modified":"2009-01-11T17:40:29","modified_gmt":"2009-01-11T15:40:29","slug":"help-testing-jqgrid-34-beta","status":"publish","type":"post","link":"http:\/\/www.trirand.com\/blog\/?p=30","title":{"rendered":"Help Testing jqGrid 3.4 beta"},"content":{"rendered":"<p>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.<br \/>\nThe 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.<br \/>\nHere in brief what is new<br \/>\n<!--more--><br \/>\n<strong>New modules<\/strong><br \/>\ngrid.import.js &#8211; jqGrid import\/export module<br \/>\njson2.js &#8211; json utils used in import\/export module<br \/>\nJsonXml.js &#8211; xmljson utils used in import\/export module<br \/>\njquery.fmatter.js &#8211; jqGrid formater &#8211; thanks to Joshua Burnett.<\/p>\n<p>All these modules are included in jquery.jqGrid.js<\/p>\n<p><strong>New Theme<\/strong><br \/>\nThanks to Joshua Burnett now we have a steel theme<\/p>\n<p><strong>What is New<\/strong><\/p>\n<ul>\n<li>Custom and predefined cell formating (links,checkboxes,mail, numbers, currency, date, select) Also added new parameter in colModel &#8211; formatter.<br \/>\nSee how to use in readme.txt of the zip\n<\/li>\n<li>\nDynamically load the grid configuration and data from xml, xmlstring, jsonstring Added two new methods jqGridImport(params) and jqGridExport(params);<br \/>\nSee how to use in readme.txt of the zip\n<\/li>\n<li>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<br \/>\ninteligent 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.<br \/>\nI.e. the height auto should not be set.\n<\/li>\n<li> To the colModel is added new Parameter &#8216;label&#8217;. This set the header content of the grid. That mean &#8211; 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.<br \/>\nAll this is true if the colNames array is empty.<br \/>\nIf the colNames array is set (not empty) they have higer priority.\n<\/li>\n<li>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<br \/>\n(yahoo style)\n<\/li>\n<li>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 &#8211; see below<br \/>\nthe new added parameter in setCell;\n<\/li>\n<li>To setCell method is added 5 parameter (array) &#8211; attribute properties which sets the attribute properies of the cell. Example<br \/>\njQuery(&#8220;#mygrid&#8221;).setCell(&#8220;rowid25&#8243;,&#8221;Myname&#8221;,&#8221;NewData&#8221;,&#8221;,{title:&#8217;mynewtitle&#8217;});<br \/>\nSet new Title of the cell specified with rowid25 and name Myname\n<\/li>\n<li>The select values in editing module can now be set as array too. That mean if we have<br \/>\ncolModel : [<br \/>\n{name:&#8217;mynale&#8217;,edittype:&#8217;select&#8217; editoptions:{value:&#8221;1:One;2:Two&#8221;}}<br \/>\n&#8230;<br \/>\n]<br \/>\nThis can be used this way<br \/>\ncolModel : [<br \/>\n{name:&#8217;myname&#8217;,edittype:&#8217;select&#8217;, editoptions:{value:{1:&#8217;One&#8217;,2:&#8217;Two&#8217;}}}<br \/>\n&#8230;<br \/>\n]<br \/>\nBoth are correct and can be used as select definition.\n<\/li>\n<li>Added second parameter in setSelection &#8211; (onselectrow) (true or false) default is true. If set to false the onSelectRow is not lunched;\n<\/li>\n<li>The sorttypes when data is local are now compatible with formater. (see below).\n<\/li>\n<li>When multiselect is set and we use onRightClickRow the row is not selected.\n<\/li>\n<li>Subgrid Channges<br \/>\nAdded new methods<br \/>\n&#8212; expandSubgridRow(rowid) &#8211; expand dynamically a subgrid row with the id = rowid<br \/>\n&#8212; collapseSubGridRow(rowid) collapse dynamically a subgrid row with the id = rowid<br \/>\n&#8212; toggleSubGridRow(rowid) toggle dynamically a subgrid row with the id = rowid<br \/>\n&#8212; subGridJson(json, sid), subGridXml(xml, subid) (see below how to use these methods)\n<\/li>\n<li>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\n<\/li>\n<li>In editing modules when requered is false and other checking is provided we do not alert a message when the data is empty.<br \/>\nExample<br \/>\ncolModel: [<br \/>\n{&#8230;editrules:{required:false,number:true..}&#8230;}<br \/>\n&#8230;<br \/>\n]<br \/>\nIn this case when the data is not filled by the user the alert message do not apper &#8211; i.e. in this case this is valid input.\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>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 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"http:\/\/www.trirand.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/30"}],"collection":[{"href":"http:\/\/www.trirand.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.trirand.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.trirand.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.trirand.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=30"}],"version-history":[{"count":19,"href":"http:\/\/www.trirand.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/30\/revisions"}],"predecessor-version":[{"id":49,"href":"http:\/\/www.trirand.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/30\/revisions\/49"}],"wp:attachment":[{"href":"http:\/\/www.trirand.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=30"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.trirand.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=30"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.trirand.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=30"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}