Home > jQuery > jqGrid 3.5

jqGrid 3.5

August 1st, 2009

jqGrid 3.5 finally is released.
First of all I want to Thank you all people that participate on this project with invaluable comments and contributions.
I have started new project jqGrid Wiki
The purpose of this project is easy to update the Documentation and the most important part – I have added a HAWTO Sections under every Documentation Chapter. Here we will add all the things that we have discussed and resolved in the Forum.
Since my primary language is not English I want to apologize for the errors in the Documentation, but I hope that with your help we make it better and better.
The registration in the jqGrid Wiki is free so feel free to correct errors and make additions in the Documentation.
(Note – the account on the jqGrid Wiki and the blog are not synchronized – sorry. Any attempt to do this ends with not working wiki.)
For all bug fix releases and updates of 3.5 version please, check the Wiki page

Enjoy

Tags:
  1. Ravindranath Akila
    August 1st, 2009 at 19:28 | #1

    Great Job,
    Really impressed by this grid. Sorting 12000 records takes about a second which is fair enough. I hope the following features are supported in the next release:

    Support for Images
    Support for Context Menus

    Thank you!

  2. Jerry Butler
    August 1st, 2009 at 22:26 | #2

    Tony,

    Thanks for getting us to jqGrid 3.5. Everything is working great so far. The new wiki is great also.

    Did you intend to leave out json2.js?
    Jerry

  3. Kien
    August 2nd, 2009 at 07:18 | #3

    Thanks for the update!

    I just wanted to post some trouble I’ve been having here. These seem to be bugs, so I wanted to bring them to your attention.

    ** Sorting an Adjacency TreeGrid with JSON data causes “Loading…” text to appear and grid AJAX operations to cease.

    ** The filterToolbar() retains search values, even when cleared. For example, when column A has a search term from a previous search, and I clear it, then click on column B to type a search term and press enter, the request is still sent with the search term for column A.

  4. August 2nd, 2009 at 22:09 | #4

    @Kien
    Thanks for these.
    Both bugs are fixed. The one is published in GitHub (treeGrid) – the other need some other testings. Next week I will publish a bug fix release.
    Regards
    Tony

  5. Bert
    August 3rd, 2009 at 10:41 | #5

    Good demos on your site, but i can’t get the new version 3.5 running in an asp .net mvc application (runtime error). Is it possible that there’s an error in the download-builder? (the vast majority of the jquery.jqGrid.min.js is commented out).

    All dependencies & paths should be configured correctly.

    Btw: Older versions are doing fine on my machine.

  6. Rayson
    August 3rd, 2009 at 11:31 | #6

    Dear Tony,
    Thanks for the new release.
    I used to show / hide the grid’s navigation bar by setting its CSS visibility. That worked fine in 3.5 beta. However after I upgraded to 3.5, the hidden navigation bar does not show up until I collapse and open the grid. After I collapse and open the grid once, the CSS visibility works like before. Any clue why that happened? Is there any other way to hide/show the navigation bar?
    Best regards,
    Rayson

  7. Dima
    August 3rd, 2009 at 12:36 | #7

    Hi Tonny,
    First of all, thank you so much for this amazing plugin!

    I was wondering how can I add javascript events to edit form fields.
    For example
    {name: ‘name’, index: ‘name’, width: 200, editable: true, sortable: false, search: true, editoptions: { readonly: false, size: 32, ‘onKeyPress’: ‘if($(“#cbLanguage”).attr(“checked”))togeo();’ }}

    this piece of code forks like a charm in IE8, but fails in FF, and IE7.
    So what’s the right way of adding events like onKeyPress to fields of edit form?
    Thanks.

  8. hpoe
    August 3rd, 2009 at 14:18 | #8

    @tony
    I just tested the filterToolbar again, just to be sure it works. The clear button wipes data in normal text fields, but not in select dropdowns and brings back all rows.
    if you do another filter action following the “clear” all the previously wiped fields are sent to the server. I am sure about this because I log all requests arriving at the server (key value pairs).

    Please have a close look at this

  9. August 3rd, 2009 at 15:51 | #9

    @Rayson
    Check your code again. Nothing is chnged in this direction

    @Dima
    Good start is to read the updated Wiki docs

    @hope
    Please read carefully what I write – both bugs are fixed, but only (the tree Grid) fix is published

    Regards
    Tony

  10. Pavel
    August 3rd, 2009 at 16:41 | #10

    Hi Tony,

    I’ve read now in the Wiki, that it is now the regular behavior with deselect all selections if multiboxonly is set true and clicking on the row. So I have to live with it 🙂

    But I still think this innovation is very unlogical, uncomfortable and not user friendly. I have already described the situation, imagine, one has selected over 10…20…50 or more rows and than clicks accidental not on the checkbox, but near it or somewhere in the row. The selection is gone and he or she must do everything again.
    The multikey option is not a solution too. If I have defined a multikey and want to use inline editing, so there’re no possibility to choose a position of cursor in the input fields.
    I understand, that the jqgrid can’t meet everyone’s expections, but there are now no possibility to ignore the clicks on a row and some flexibility has gone.

    Best regards,

    Pavel

  11. Nima
    August 3rd, 2009 at 18:07 | #11

    Great work Tony, It’s looking great!!!!

    One question, is it possible to do JSON binding in GridView mode NOT from an external URL but instead from Array or JSON data already loaded in the browser? I couldn’t find anything like that in the samples. Also I couldn’t find a good sample of right data template for JSON data that the grid accepts. I know simple JSON data doesn’t work, it needs special properties for the grid.

    On initial page load all the JSON data is already loaded in my page.

    Thank you.
    Thank you.

  12. Chris
    August 3rd, 2009 at 19:51 | #12

    The treegrid example is trying to access data in a table called, ‘accounts’. That table is not included in the database.sql. Is there another sql file someplace?

  13. Keith Ivey
    August 3rd, 2009 at 21:40 | #13

    Thanks, Tony!

    Somewhere along the line the API for the formatter functions changed. Earlier the arguments included the table cell as well as the row data as an object, keyed by column names (as one of the values inside another object). Now both of those are gone, and the formatter is apparently supposed to return the cell contexts as text. This means the formatter can’t, for example, add a class to the cell to change its color. The lack of row data also makes it harder to add in anything from another column. Is there any way of bringing that functionality back without disrupting your current design?

  14. MNBob
    August 3rd, 2009 at 22:59 | #14

    I’ve only been using the grid for a couple of weeks but so far I’m impressed. Nice work!

    I’ve followed Pavel’s past comments and I have to agree with him that it is not intuitive to only allow multi-select with the checkboxes but not when selecting a row. It is too easy for a user to accidentally click on a row and remove all of their previous selections. It would be nice if there was at least an option to support multi-select row clicks.

  15. shuki
    August 4th, 2009 at 00:03 | #15

    Hi tony.
    Thanks for the new release.

    When you have some time I wish to assist you with enabeling right-to-left (rtl)direction on the grid.

    Thank you
    shuki

  16. Rayson
    August 4th, 2009 at 05:09 | #16

    @tony
    Dear Tony,
    I used Firebug to track down the cause of problem. It was caused by the navigation bar class assignment to “scroll”. I checked the on-line documentation of 3.5 http://www.trirand.com/jqgridwiki/doku.php?id=wiki:first_grid&s%5B%5D=class&s%5B%5D=scroll and found the following sentence has been crossed out – Giving the class “scroll” of the navigator specifies that we want to use the CSS provided with jqGrid. So I just removed the class assignment and problem fixed.

  17. August 4th, 2009 at 08:50 | #17

    This script is just awesome!!! I love it!
    Would it be possible to include localization? So that the grid labels are also german or whatever?
    regards

  18. Jan
    August 4th, 2009 at 15:11 | #18

    Tony,

    i’ve updated to the new version and it’s working quite well, but i have a problem 🙂
    In my grid i want to display all the records returned by the server .. previously when not setting rowNum i could achieve this behavior, now however the default rowNum setting/behavior has changed such that the default rowNum. Is it still possible to do this in some way by e.g. setting rowNum to 0 or -1 (without resorting to ugly hacks such as setting rowNum to Number.MAX_VALUE)?

    thanks,

    Jan

  19. Rayson
    August 5th, 2009 at 05:00 | #19

    Tony, clearGridData() does not clear the footer row.

  20. Lasantha
    August 5th, 2009 at 09:41 | #20

    Tony,

    Really helpful plug in. Great work.

    Cheers
    Lasantha

  21. August 5th, 2009 at 09:47 | #21

    @Dima

    Check thedocs there is a dataEvents option

    @Pavel
    Instead will see what I can do.

    @shuki
    Next week I will be ready to do this. Will contact you

    @Jan
    I have do this. Will be in 3.5.1 release

    @Rayson
    See this
    http://www.trirand.com/blog/?page_id=393/bugs/action-of-cleargriddata

  22. Dave
    August 5th, 2009 at 10:49 | #22

    Im sorry that i didnt see the localization already.
    But 1 other questions:
    Is it possible to send the edited data as json object, so that an asp.net webservice can handle it?
    regards

  23. kris
    August 5th, 2009 at 18:09 | #23

    Hi Tony,

    I have downloaded the latest version 3.5 and using the toolbar search feature.
    The clear function does really clear the search. It turn search querystring on and off but does not remove the other values in the querystring. I have modeled this from the demo files and documentation. Either I am doing something wrong or is this still a bug

    Please let me know

    Thanks,

    Kris

  24. kris
    August 5th, 2009 at 18:15 | #24

    Sorry Tony,

    I just had to set to mtype:”POST”. Everything works fine now.

  25. ksg
    August 5th, 2009 at 19:16 | #25

    Just FYI, the underscore in the _search param passed causes problems in Oracle. I’m using mod_plsql to call Oracle stored procedures from jqGrid for the data in the grid. Oracle stored procs can’t have variables beginning with an underscore so I had to modify the name (changed _search to searchval) in order to get Oracle to accept it.

  26. Thairu
    August 5th, 2009 at 23:53 | #26

    Hi Tony,

    I am new to jqGrid and trying to implement grid column settings per user e.g which columns the user wants shown and the user defined size of each column. Is there a way to adjust column widths after the grid has initialized? Or is there a grid pre-initialization event/handler that would allow for changes to the colModel before the jqGrid has initialized?

    Thanks!

  27. casperd
    August 6th, 2009 at 11:35 | #27

    Hi,

    I have added some grids to a jQuery UI Accordion object. All the grids on the accordion child that is expanded by default, displays perfectly. But the grids on the accordion children that are NOT expanded by default, permanently shows the jqGrid “Loading” div on these grids. Any ideas?

    Thanks!

  28. Tac
    August 6th, 2009 at 18:32 | #28

    I’m getting an error using IE8, on line 579 of grid.base.js

    Webpage error details

    User Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; MSN Optimized;US)
    Timestamp: Thu, 6 Aug 2009 16:22:04 UTC

    Message: ‘gdata’ is undefined
    Line: 579
    Char: 40
    Code: 0
    URI: common/js/grid/grid.base.js

    Keith proposed this fix:

    Change:
    if ($.isFunction(ts.p.datatype)) { ts.p.datatype(gdata,”load_”+ts.p.id); return;}

    to:

    if ($.isFunction(ts.p.datatype)) { ts.p.datatype(ts.p.postData,”load_”+ts.p.id); return;}

  29. Dick
    August 6th, 2009 at 21:03 | #29

    casperd :Hi,
    I have added some grids to a jQuery UI Accordion object. All the grids on the accordion child that is expanded by default, displays perfectly. But the grids on the accordion children that are NOT expanded by default, permanently shows the jqGrid “Loading” div on these grids. Any ideas?
    Thanks!

    @Casperd,
    @Tony,

    I have the same issue with UI Tabs – looks great on the initial tab, but “Loading…” on the others. I had hoped this was fixed with the 3.5 release.

  30. lloydjm
    August 6th, 2009 at 22:24 | #30

    Hi Tony,

    Great work on the grid! I have found one small bug in grid.import.js on line 32.

    if(xmlJsonClass.xml2json && $.parse) {

    It looks like you have changed the $.parse to $.jgrid.parse everywhere else in the file. I changed it and it works fine. Just wanted to let you know.

    Jonathan

  31. tony
    August 7th, 2009 at 06:49 | #31

    @casperd @Dick
    Hope it is fixed now. Check the GitHub

    @Tac
    Thanks. Fixed

    @lloydjm
    Thanks fixed.

    Regards
    Tony

  32. August 8th, 2009 at 05:21 | #32

    Hi Tony – congrats on a wonderful plugin! I have most of my application finished save for a few things that I’m struggling with (I just upgraded to 3.5)

    I can’t seem to get my custom unformat function to work – it is called but it doesn’t appear to be receiving the parameters…

    …i love the new Wiki but there might be some mis-information on it re: custom unformat

    thanks for all of your hard work!

  33. Martin
    August 9th, 2009 at 07:47 | #33

    Hi Tony,

    I really like what you’ve built. I have a nice simple grid working, but for some reason I can’t get the example for advanced-search to work. I downloaded the complete set of plugins, but the search4.js script doesn’t show anything. I wonder if the navGrid on line 26 is right to??

    Is all I’m using.

    Thanks
    Martin

  34. Martin
    August 9th, 2009 at 07:50 | #34

    Hi, The system tool out thje html from my page, so I’m including:

    jquery-1.3.2.min.js
    grid.locale-en.js
    jquery.jqGrid.min.js
    jquery-ui-1.7.2.custom.css
    ui.jqgrid.css

    then….

    table id=”s4list”
    div id=”s4pager”
    script src=”/jqgriddemo/search4.js”

    with the appropriate html around them.

    Any ideas? Firefor 3.5, Win 7

  35. August 9th, 2009 at 18:44 | #35

    Off-topic: what happened to the Firefox 3.5 download counter?
    http://downloadstats.mozilla.com/

    It still has not been updated to 3.5.2 yet and does not show the correct numbers anymore…

  36. Martin
    August 9th, 2009 at 19:06 | #36

    Ok, I figured it out, thanks. Javascript console is your friend…

  37. tony
    August 10th, 2009 at 13:22 | #37

    @jack_s ,
    There is a bug in unformat. Fix is available in GitHub. Will put the bugfix release soon.

    @Martin
    If you understand what is posted, you will have idea what to get and how to convert this to SQL where clause. By the way which modules are listed at the beginning of jquery,Grid.min.js. Check if you have included the needed modules.

    @René
    Do not have idea of this – maybe in Mozilla forgot to update this.

  38. Martin Fisher
    August 11th, 2009 at 00:16 | #38

    Hi Tony,

    Thanks for the response, I got advanced-search working great. This is an amazing tool, it has saved me weeks of work. Now I’m moving to edit, and I have a select field dataURL set to a URL that returns a nice select statement, but when I try and access it from query I get the error “404 Page Not Found –> _nsd”

    The JS is:
    {name:’region’,index:’region’, width:80,align:”right”, sortable:true,editable:true,
    edittype:”select”,
    editoptions:{rows:”1″,cols:”40″,dataUrl:’/index.php/EventController/regionlist’},
    formoptions:{rowpos:6,elmprefix:”    ” }},

    If you have any idea what I’m doing wrong I’d appreciate it.

  39. Rayson
    August 11th, 2009 at 07:43 | #39

    Dear Tony,
    The delete prompt is currently positioned on the top of grid. When a record at the bottom of grid (scroll:true) is deleted, I have to scroll all the way back to the top of grid to see the prompt. Is there any way to position it to top/center of window instead?
    Best regards,
    Rayson

  40. Rayson
    August 11th, 2009 at 09:48 | #40

    @Rayson
    Dear Tony,
    The problem seemed to be setting height:’60%’ instead of number of pixels. I used percentage because I want the grid to grow according to actual window size. However I found the grid behaves like height:’auto’. The top of grid is out of sight when I scrolled to bottom of grid to press delete.
    Best regards,
    Rayson

  41. casperd
    August 11th, 2009 at 11:33 | #41

    @tony
    Hi Tony,

    I have just installed 3.5.1, and the accordion problem is still there.

  42. August 12th, 2009 at 11:24 | #42

    Hi Tony,

    in grid.base.js
    var gv = $(“<div class='ui-jqgrid-view'”), ii,
    should it be
    var gv = $(“”), ii,

    Cyrus

  43. Sue
    August 12th, 2009 at 16:56 | #43

    Dear Tony,
    I have the grid in place and it shows page 1 of 10 but the page controls are not working. They do not appear as active.
    I have the links

    and mostly default settings.
    If any of you have any idea what I’m doing wrong I’d appreciate it.
    Thanks
    Sue

  44. Sue
    August 12th, 2009 at 18:05 | #44

    Actually the full page is non navigable.

  45. Martin Fisher
    August 12th, 2009 at 19:45 | #45

    Hi Tony,

    I might be seeing a bug with the editor popup with checkboxes. This is the situation:

    Fill first grid, select a row in first grid. This fills second grid.
    Second grid has rows which have a few checkboxes.
    Select row on second grid, and click edit. The edit dialog appears and has the non-checkbox data filled correctly, but the checkboxes are not filled correctly.
    Close edit dialog, and reopen it, checkboxes now filled correctly.

    In other words, only the first time the checkbox is part of the edit dialog does it not work, all other times it works fine.

    Thanks
    Martin

  46. Florent
    August 13th, 2009 at 17:13 | #46

    Hi Tony,

    I think I found a bug in the advanced searching. In file grid.formedit.js at the function searchFilters, the array sdata is empty when it’s added in the array p.postData.

    I made some tests and the code “sdata=[];” must be replaced by “sdata = new Object();”

    Florent

  47. August 13th, 2009 at 17:25 | #47

    @Florent
    Thanks. Fixed in the GitHub.

    @Martin,
    Will check definitely this. Seems to be a relly bug.

    @Sue,
    In some cases the pager elements are disabled. Mostly if datatype is local.

    @casperd,
    Please send me link to the problem.

  48. tony
    August 14th, 2009 at 08:58 | #48

    @cyrus
    Thank you very much – this is a important bug and it is fixed.
    Regards
    Tony

  49. Vlad
    August 14th, 2009 at 16:32 | #49

    There is mising class=’ui-state-error’ in TD – so errors displeyed as normal text….

  50. August 15th, 2009 at 05:18 | #50

    Hi Tony,
    Since I switched from 3.4 to 3.5 the page input and “total pages” are not appearing in the nav bar. All of the other controls are there and work perfectly.
    In Firebug the cell where the “Current Page” input shoud be has the markup:

    This is mark up is where the “Total Number of Pages” should be:

    Should these elements be “ui-pg-button” class?

    I am using a custom theme that I did on the “Themeroller” – could this be a CSS problem? Even when I use one of the standard themes these elements aren’t displayed.

    …or could this be the problem: If JQGrid receives data (JSON) in which “Page” and “Total Pages” have values that are floats, would that cause these missing elements to not to appear. (I haven’t been able to figure out how to convince my ColdFusion CFC to give me 1 instead of 1.0 yet… )

    thanks!

Comment pages
1 2 3 468
Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information