Home > jQuery > jqGrid 3.4 beta 2

jqGrid 3.4 beta 2

January 27th, 2009 Leave a comment Go to comments

Hello All,
Mainly this is a bug fix release, but it add some other things that must be done and promised.
List of changes:

  • jQuery 1.3.1 support
  • Tree grid support now Adjacency model
  • added to setLabel 4 parameter – attribute array to set atribute properties to element

Corrected Bugs

  • setCell – attribute fix
  • onSelectCell is raised instead of multiselect
  • corrected multiple bug and size properties of the select in cleateEl function
  • fixed bug in pager buttuns when they have attr disabled
  • fixed bug in inline edit when edittype select
  • fixed bug in TreeGrid to support json
  • fixed bug in sgetRowData method in IE7 when jQuery 1.3.1 is used
  • Code optimizations and other minor fixes

At end of week I will publish a working examples with Tree Grid – xml and json support.
Please post any bugs in the forum

Best Regards
jqGrid Team

Tags:
  1. Genius
    January 27th, 2009 at 14:40 | #1

    Thank you very much!
    I hope “getRowData” in IE7 is fixed too, because I have to show a demo on 29th Jan and I really need this fix.

  2. tony
    January 27th, 2009 at 14:44 | #2

    Hello,
    Sorry it was a typo from me the method is getRowData.
    Thank you
    Best Regards
    Tony

  3. Genius
    January 27th, 2009 at 15:25 | #3

    It’s okay,
    I met your plugin only few days ago, but I love it from the first glance.

    I have interesting ideas how to improve and extend features of JqGrid and do some experiments. If it will success, I’ll share my sources with you

  4. January 27th, 2009 at 18:22 | #4

    Hello,
    Thanks for the plugin, it’s really nice and powerfull,
    P.S.: waiting for 3.4 stable 🙂

    Thanks again!

  5. January 28th, 2009 at 02:20 | #5

    Hi there,

    FYI, the readme.txt file doesn’t exist in beta2. (I know I said it in the earlier post but this place seems more appropriate…)

  6. Kouros
    January 28th, 2009 at 04:16 | #6

    Fantastic Work!

  7. tony
    January 28th, 2009 at 11:26 | #7

    Hello Alex,
    Thank you very much for this.
    The readme is now included into the release.
    Tony

  8. Alex G
    January 28th, 2009 at 17:44 | #8

    Your grid just saved my team’s a$$… thanks man 🙂

  9. January 28th, 2009 at 21:39 | #9

    I can’t get this to work with latest JQuery UI 3.1. Specifically if I include jquery.ui.all.js, the grid does not display at all.

    Any ideas?

  10. tony
    January 29th, 2009 at 17:07 | #10

    @Trevor
    I do not known for jQuery UI 3.1 – did you mean jQuery UI 1.6rc5?

  11. January 29th, 2009 at 19:22 | #11

    @tony
    Sorry I mis-stated. I mean JQuery 1.3.1 and jQuery UI 1.6rc5. I downloaded a theme from themeroller. When I included any of the ui. js files, I couldn’t see the grid.

  12. January 30th, 2009 at 02:01 | #12

    I can confirm that jqGrid has issues with jQuery 1.3.1. Works fine under jQuery 1.2.6, of course.

  13. Neph04
    January 30th, 2009 at 11:17 | #13

    @Trevor
    I’ve included jQuery 1.3-min + jQuery UI 1.6rc5 with themeroller theme successfully to my project.. (with jqGrid 3.4 beta 2)
    Check if all of neccessary js was loaded…

  14. Kurt
    January 30th, 2009 at 23:54 | #14

    Any idea when 3.4 will be released? Will it work well with JQuery 1.3.1. I think most people will be fine if JQuery 1.3.1 is a requirement for the 3.4 jqGrid release.

  15. cornbread
    January 31st, 2009 at 01:42 | #15

    I am unable to get the number or currency formatters working. Here is code:
    script:
    colModel :[

    {name:”price”, formatter:’currency’, index:”price”, width:80, align:’right’},

    ],

    grid.locale-en.js is included:
    $.jgrid.formatter = {


    currency : {decimalSeparator:”.”, thousandsSeparator: “,”, decimalPlaces: 0, prefix: “$”, suffix:””, defaulValue: 0},

    }

    BTW Keep up the great work!

  16. kshfi
    February 1st, 2009 at 13:23 | #16

    Grid import json error:

    // xml works fine
    var strxml=jQuery(“#navgrid”).jqGridExport({exptype:”xmlstring”});
    // but json give error
    var strjson=jQuery(“#navgrid”).jqGridExport({exptype:”jsonstring”})
    Firebug console:
    too much recursion
    [Break on this error] v = stringify(arg[i]);

    -jukka-

  17. kshfi
    February 1st, 2009 at 17:56 | #17

    GridImport bug ?
    If I do import and then add some methods to the grid, those set not work, but if make those later, those works.

    jQuery(document).ready(function(){
    jQuery(“#navgrid”).jqGridImport({imptype:”json”,
    impurl:”someurl”,
    mtype: “GET”,
    impData: {},
    jsonGrid: {
    config: “grid”
    }
    });
    // setup toolbar for search fields
    jQuery(“#t_navgrid”).height(25).hide().filterGrid(“navgrid”,{gridModel:true,gridToolbar:true});

    // navbar buttons
    jQuery(“#navgrid”).navGrid(‘#pagernav’,
    {}, //options
    {height:280,reloadAfterSubmit:false}, // edit options
    {height:280,reloadAfterSubmit:false}, // add options
    {reloadAfterSubmit:false}, // del options
    {} // search options
    );

    });

    This Import is so nice – thanks. This give excellent properties to create veryveryvery dynamic system.

    -jukka-

  18. kshfi
    February 2nd, 2009 at 07:16 | #18

    Min/max button method. If you have set
    jQuery(”#t_navgrid”).height(25).hide().filterGrid(”navgrid”,{gridModel:true,gridToolbar:true});

    and after that click min and max the grid, toolbar will be visible.

  19. kshfi
    February 2nd, 2009 at 09:51 | #19

    @kshfi

    If I add timer before jqGridImport
    setInterval(“MyInit()”, 300);

    and MyInit do those rest of init, then it works. (navGrid, toolbar)

    -jukka-

  20. February 4th, 2009 at 01:16 | #20

    Any word on the demo that shows using TreeGrid with the adjacency list model? The application I’m (hoping) to use this on stores data in adjacency-list format, and while I think I can force into a nested set model, I’d rather go the adjacency-list route if at all possible.

  21. Kurt
    February 5th, 2009 at 01:56 | #21

    Any updates on the release date for 3.4?

    Thanks a lot!

  22. kggrid
    February 5th, 2009 at 08:18 | #22

    I’m facing some issues.

    1. I have a subgrid. Here is what I did, expand the subgrid and then sort the parent grid (by clicking on a column header) and things get messed up. If I click on the parent column header again, I think it gets into an infinite loop and the browser crashes.

    2. Sort/everything works fine if I collapse the subgrid

  23. kggrid
    February 5th, 2009 at 08:21 | #23

    Also , would it be possible for you to attach a grid.pack.js for the 3.4beta 2 as well – if its not too much work?
    It helps us run some performance tests.

    thanks!

  24. tony
    February 5th, 2009 at 11:03 | #24

    @Matt
    I will describe this detailed in the docs
    @Kurt
    If the docs are ready it will be this Sunday.

    Regards
    Tony

  25. RobGMiller
    February 5th, 2009 at 19:33 | #25

    @kggrid

    I am using grid as subgrid and did not encounter that issue with jqGrid release 3.4, jQuery 1.3 and IE-8 or FireFox 305

  26. andrez0r5
    February 6th, 2009 at 16:07 | #26

    Hi there! I am new to jqGrid and would like to know how to capture the data on the page (teste.php) that i set using editurl. I must let you know that im trying to edit a row. I could do it but it gets removed only in the table, not in the server. That’s what i want to do.

    Hope anyone can help 🙂

    Thanks

  27. vkapoor
    February 6th, 2009 at 23:46 | #27

    Tony, I am using jqgrid 3.4 beta 2 with ASP.NET with datatype xml to load around 2500 rows and 20 columns. The table seems to take around 24 seconds to render. I have not yet tried to do the same using JSON, but is there a reason why the rendering takes long. I was not sure if this was an expected behavior due to number of rows, but I certainly believe that datatype JSON will be faster. I will appreciate if someone could share their implementation of JSON in .NET with me.

  28. February 10th, 2009 at 11:48 | #28

    @vkapoor
    My experience is that with ASP.NET not the rendering of the grid is the time killer but the the time it takes the server to bring the data (so the AJAX request). I asume you are using MS SQL Server wich is pretty slow for this task.
    You could use the firebug extension for firefox that shows you the requests that are made to the server, and also the time it take for the request to be completed.

    I’ve made an experiment.. I used the same DB table with 1 million rows on ASP.NET with MS SQL and jqGrid and (for comparison) on a MySQL server with PHP and jqGrid

    With MS SQL and ASP.NET it took ~241ms to load a page of 10 entries with jqGrid while with MySQL it took 15-20ms… So more than 10 times faster. But.. that is a very basic example. Of coure MS SQL makes up with functionality (it could be a little faster though :p)

    But anyways.. 24 second is A LOT. Make shure you optimize your database, indexes etc.. i don’t think that jqGrid is the problem here

    Good luck

  29. Neph04
    February 10th, 2009 at 13:07 | #29

    Great work, but i think is time to start with “cleanup”. This grid use jQuery framework and i dont now why dont use jquery ui… dialog, draggable, sortable, theme etc… Is very hard to catch all of bugs or customize grid exactly for project 🙁 (multisearch with hide/show columns is almost impossible. Table grid on 100% screen width too) Include jquery ui could help to improve functionality..
    And strange behaviour with column width.. you used bad table model.
    Is better use one default table with section and create toolbars and footers within. Columns stretch then will fork fine..
    Now with make headache to fit grid on screen, multisearch and other..
    But very good work! Thank you for grid!

  30. vkapoor
    February 10th, 2009 at 16:36 | #30

    @dizzyC Thanks for your response. I did not use the JSON approach here and instead return the data as xml, using a web service to retrieve data. I will test out the same using JSON since that will skip out the parsing logic, but I am positive that the data is returned much faster and the rendering takes perdominant time. I will however appreciate if you could share your example with me.

  31. vkapoor
    February 10th, 2009 at 18:17 | #31

    @vkapoor
    I also wanted to mention that I donot have paging enabled in the grid. So the entire tables loads all 2500 rows at once.

  32. Chico
    February 11th, 2009 at 09:57 | #32

    @kshfi
    I have the same problem with jqGridExport as jsonstring. The firebug console say: “InternalError: too much recursion “. Any idea to correct this problem??

  33. tony
    February 11th, 2009 at 10:08 | #33

    @kshfi
    @Chico
    There is a important note about this in the readme.txt.
    Please first read them first.
    Thank you
    Tony

  34. Chico
    February 11th, 2009 at 10:46 | #34

    @tony
    Thank’s Tony. You are right. The important note in the readme.txt say: “IMPORTANT NOTE
    When using the jqGridImport the pager …..” but I’m using jqGridExport and I was not thinking that could be the same problem.

    Great work with the plugin
    Regards

  35. tony
    February 11th, 2009 at 11:10 | #35

    Hello,
    Thank you very much for this. Yes it is my bad. I will correct this in the documentation too.
    Regards
    Tony

  36. vkapoor
    February 11th, 2009 at 18:19 | #36

    In my tests I attempt to load >= 2000 rows (15 columns) dynamically generated using jsonstring as datatype. It still takes around 15 seconds to load the table in IE. However, the same table loads in < 5 seconds in firefox. Is there some other approach that I should take. Will the jqGridImport function provide me any other advantage. Any help will be highly appreciated since I have been on this for a day now.
    Thank you in advance

  37. milosc
    February 12th, 2009 at 09:20 | #37

    @vkapoor
    I am trying with JSON (same scenario as yours) but seems like addJSONData does not work. Grid is empty… no error no warninig.

  38. vkapoor
    February 12th, 2009 at 23:03 | #38

    is no one else having this issue of large dataset taking time to render on IE?

  39. February 13th, 2009 at 04:20 | #39

    Tony:

    When you integrated with the latest UI with themeroller, did you get it to work with those themes? If so, what did you do?

  40. February 13th, 2009 at 07:51 | #40

    Can’t wait for the final 3.4.
    I’m going to try this version.
    Will post any bugs encountered.

  41. dani
    February 14th, 2009 at 20:55 | #41

    Hello,

    Is there any possibility to integrate fckeditor(or tinymce or jwysiwyg) with JGrid(for add/edit option)?

    Thank you

  42. Kurt
    February 15th, 2009 at 19:58 | #42

    Still no word on the release date for v3.4??

    Thanks.

  43. tony
    February 15th, 2009 at 21:45 | #43

    @vkapoor
    I have never try with 2000+ records. But I have make some tests 300-350 records. They show me that FF is 2-4 faster than IE. I think that the problem is in the nature of IE and how the ajax goes with it.

    @Rogers
    The work is stil in progres (60% done) and will be done at middle of march. The next release will have significant changes in apperance.

    @dani
    Look in to the forums. I think there was a such example.

    @Kurt
    I just published the 3.4 release.

    Regards
    Tony

  44. n00b
    March 3rd, 2009 at 20:18 | #44

    @tony
    Does anyone have a simple example of this implementaion written in asp they can share. I have a MSSQL server with log data and I am trying to use Visual Studio to create a site that displays the data using jquery/jqGrid.

  45. expaand
    March 20th, 2009 at 12:31 | #45

    I have the same issue as @kshfi. The problem for me is you can’t set grid parameters until the grid has initialized, or you get errors.

    Putting in a timer, e.g., setTimeout(“MyInit()”, 300) works, but this is not great as you don’t really know how long things will take.

    I would really like to set an event function to fire on “gridComplete”. But how do you do this if the grid itself is being initialized by an xml file via jqGridImport?

    Thanks!

  46. phani
    March 26th, 2009 at 07:37 | #46

    Hi,

    I am using jqgrid in our project as it meets most of our requirements.
    I am using client side jqgrid. so I used datatype:’clientside’.

    I added the navgrid too to do add/delete/edit operations using forms.

    In all browsers it is working fine except in IE. I am currently using IE7.

    The issue is when I click on Add Icon, the form appears, but the background greying section also appears as expected. but All the data will go below(not behind) the grey section. And it looks so absurd.

    Can any one please let me know the solution.

    Thanks in advance.

    Phani

  47. phani
    March 26th, 2009 at 16:54 | #47

    ie, the overlay is getting displayed, but the data that has to be displayed behind is getting displayed below.. ie below the screen visible area!!

  48. seira
    June 1st, 2009 at 19:26 | #48

    @vkapoor and DizzyC
    I need help to use jqGrid with asp.net (vb language), would you want to help me to give a little example for using that, please it will save my day …
    thanks before
    best regard

    seira

  49. rgkn
    June 8th, 2009 at 12:36 | #49

    @vkapoor
    On jqgrid rendering slowly in IE. I agree that you should check that the data is being delivered to the browser quickly (use Fiddler or similar), I imagine it is as you have identified the rendering as the bottle neck.

    I’m currently working a project where we are having similar issues with the speed at which the grids render. I am an analyst (not a developer) on this project and am surprised by how poorly performing jqgrid is for large grids. Did you get to the bottom of this issue and find a way to get it to perform better whilst still displaying a large number of records? I would interested to hear how you solved this, if at all.

    The approaches that the developers are taking at the moment are compromises, not solutions, as follows: Make one server call and load one json object. Then have a grid with pagination that loads smaller sets of this data. Avoid nested grids and subgrids as this seems to have a higher overhead. Avoid multiple grids. If you need to view data in subgrids, lazy load them on demand when the subgrid is expanded. Avoid nesting too many controls including ability to edit the data (editable grids are apparently worse than view only ones) Maybe see the link below for some ideas.

    http://forum.achievo.org/forum/viewtopic.php?p=50221, see further links within back to this site for examples.
    http://trirand.com/jqgrid/jqgrid.html

    However best of all would be if someone knows how to make jqgrid perform acceptably well for large grids in IE6 or IE7.

  50. June 14th, 2009 at 09:39 | #50

    Is it possible to use post method in AJAX request by the Grid ? Because codeigniter doesn’t accept GET method by default.

Comment pages
1 2 52
  1. No trackbacks yet.

Privacy Policy   Terms and Conditions   Contact Information