Home > jQuery > jqGrid 3.4.4 is out

jqGrid 3.4.4 is out

Hello all,
This is a bugfix release and maybe the last of 3.4 series. It is really difficult for me to support two versions of jqGrid. All efforts are concenrned on 3.5 release.

Here is the list of changes. The documentation will be updated as soon as possible.

1. Fixed bug in setRowData where the id of the row has a value = 0
2. Fixed bug in delRowData where the id of the row has value = 0
3. Fixed bug in Safari when the cell value is empty and we try to edit
it (inline, cell and form edit). The input always has a space instead of empty string
4. Fixed bug in loading message where we have multiple grid in tabs
5. Fixed bug in sorting in case of subGrid and datatype=local
6. To the onSelectAll event is passed array of the grid id’s (previous empty array) when we deselect all ids.
7. Added align property in the pure subGrid. By default all are align left
8. To the onRightClickRow event we pass two additional parameter rowIndex and columnIndex onRightClickRow( id, rowIndex, colIndex)
9. added autoencode parameter – common for all editing modules. Default false.
If set to true all the posted data will be html encoded
10. In form editing is added parameter closeOnEscape, which can be passed
to every action. By default is false. If set to true the modal is closed when Esc key is
pressed.
11. Fixed bug in sortGrid method – passed parameters to sort data function was wrong.
12. Fixed various typos in filterGrid method.
13. Fixed bug in searchGrid method. The evens are passed wrong to the $.isFunction function.
14. Added grid view mode in form edit. The name of the method is viewGridRow
15. Added formoptions object where we can set diffrent parameters to reorder the rows and columns and etc.
16. Fixed bug in subgrid when the json response for the subgrid is empty
17. Fixed bug in treeGrid – ExpandColClick parameter is enabled (again)
18. Added method getFullTreeNode in treeGrid – which return all the children of the given row.
Currently available only in nested set model
19. Fixed bug in getNodeDepth in treeGrid for adjacency model
20. Added option disabled in formatoptions for the checkbox formater.
Default is true. If set to folse the checkboxes are editable when set with the formatter.
21. Added Catalan, Bulgarian(1251) and Japanese Translations

Tags:
  1. tec-goblin
    June 22nd, 2009 at 18:59 | #1

    Update: I checked with 3.4.4 and now IE8 has the following message:
    Webpage error details

    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET CLR 4.0.20506)
    Timestamp: Mon, 22 Jun 2009 16:57:20 UTC

    Message: ‘undefined’ is null or not an object
    Line: 90718037
    Char: 21341
    Code: 0
    URI: http://localhost:6922/Subscriber/Edit/2

  2. tec-goblin
    June 22nd, 2009 at 19:02 | #2

    The first correct post is in the discussion for 3.4.3. As I checked it affects 3.4.5, the discussion spans both releases.

  3. tec-goblin
    June 22nd, 2009 at 19:24 | #3

    I found the problem. It was in the format of the data I was sending.

  4. Sathya
    June 25th, 2009 at 20:38 | #4

    Issue with setPostDataItem:

    To start with, jqGrid plugin has been really helpful in my project. It has loads of features and makes development a quick and enjoyable task. Keep up the good work.

    Coming to the issue, in my project, I have added a dropdown list control to the jqgrid toolbar. The dropdown list maps to a column in the database table that is enumerable. The value selected from the dropdown list must be added to the search criteria.

    In order to implement this, I used the appendPostData function to add the criteria to the query string. Also, I used to setPostData function to reset the page number to 1 whenever the value of the dropdown list changed.

    This is where I ran into the issue. The setPostData in grid.postext.js function sets the value of p.postdata[“page”] to 1 where as the populate function in grid.base.js uses the p.page value to construct the query string.

    In order to fix this issue I added a line of code in setPostDataItem to set the value of p.page to 1. This is not a perfect fix but I could get my code working after this.

    setPostDataItem: function(key, val) {
    var $t = this[0];
    if (!$t.grid) { return; }
    $t.p.postData[key] = val;
    //This is done here because, originally, the function posted the
    //new value to p.postData[“page”] but populate function in
    //grid.base.js took value from p.page.
    //So I have here put the value in p.page as well.
    if (key == “page”) {
    $t.p.page = val;
    }
    },

    It would be great to see this bug fixed in the next release of jqGrid.

    Thanks

  5. waiting
    June 26th, 2009 at 13:49 | #5

    Hi,Tony
    I found a bug delRowData() will change array getGridParam(“selarrrow”).

    see:
    $(‘#gridid’).jqGrid(
      …..
      …..
    .navButtonAdd(‘#gridid’, {
      title : ‘del’,
      onClickButton : function() {
      var gr = $(‘#’ + st.gridsave_id).getGridParam(“selarrrow”);
      var len = gr.length;
      for (var x=0; x ‘2888’
        $(‘#gridid’).delRowData( ‘save_’ + rowid);
      }
    },

    when delRowData() run once, this rowid will be del from array gr,so next for-look the value of gr[x] may ‘undefined’, whill this time x > the real length of gr.
    Instead of gr[x], blow works good:
    var saveid = gr.shift();
    var rowid = saveid.substring(5);

  6. waiting
    June 26th, 2009 at 13:51 | #6

    edit:
    above ‘var gr = $(’#’ + st.gridsave_id).getGridParam(”selarrrow”);’ should be
    var gr = $(’#gridid’).getGridParam(”selarrrow”);

  7. waiting
    June 26th, 2009 at 13:56 | #7

    it’s strange code corrupt in #5.
    post again:

    $(‘#gridid’).jqGrid(
      …..
      …..
    .navButtonAdd(‘#gridid’, {
      title : ‘del’,
      onClickButton : function() {
      var gr = $(‘#gridid’).getGridParam(“selarrrow”);
      var len = gr.length;

      for (var x=0; x<len; x++)
    {
        // alert(gr.toString());
        // alert(gr[x]);
        var rowid = gr[x].substring(5);
        $('#gridid').delRowData( 'save_' + rowid);
      }
    },

  8. June 30th, 2009 at 10:44 | #8

    nice work.

    just a small (but important) thing- i just noticed that in the sql to create the tutorial example table the primary key declaration should read:

    PRIMARY KEY (invid)

    as the column ‘id’ doesn’t exist.

    rob ganly

  9. June 30th, 2009 at 12:03 | #9

    ah, also, in the colModel

    sortname: ‘id’

    should be

    sortname: ‘invid’

    then the example will work!

    rob ganly

  10. lukasz
    July 6th, 2009 at 00:33 | #10

    is jsonReader taking the same selectors as xmlReader ?
    I’ve got a json response that contains properly formatted grid data
    as one of the elements of the response:

    {…
    griddata:{total:”2″,…},
    …}

    so mapping like:

    jsonReader:{
    root:”griddata>rows”,
    page:”griddata>page”,

    }

    should work, correct ?

    lukasz

  11. bee
    July 6th, 2009 at 23:10 | #11

    After searching/filtering a grid I want to export data in a csv file. How do I retrive grid search options and send them to an ajax request?

  12. Viktor
    July 23rd, 2009 at 10:49 | #12

    BUG in jqGrid 3.4.4
    100% height in FF 3.5.1 not work

  13. November 16th, 2009 at 21:13 | #13

    First of all, I want to thank the jqGrid team for its EXCELLENT work. This grid is the best there is for jQuery.
    Now, I needed to develop some modifications for some project I’m working on, and I wanted to share them with the community. It’s all related with jqGrid’s multiselect, and the combination of this and subgrids.
    If you’re interested, take a look at
    http://www.undisciplinedbytes.com/2009/11/jqgrid-multiselect-a-little-improvement/

  14. zsw
    October 21st, 2010 at 03:26 | #14

    @Sathya
    .jqGrid(‘setGridParam’, {
    postData: {
    ….
    },
    page: 1
    }).trigger(‘reloadGrid’);

  15. krishnateja
    September 30th, 2011 at 14:59 | #15

    how TO populate a DROPDOWN in sjg:gridcolumn on change one dropdown other have to change

  16. aishwarya
    February 7th, 2013 at 19:56 | #16

    I have a jqgrid with dropdown list as one column. But when I sort the dropdown column the values in that column are not gettin displayed. Can someone help me with this? Thanks!!!

  1. No trackbacks yet.

Privacy Policy   Terms and Conditions   Contact Information