We are happy to introduce the availability of 3.6 beta version of jqGrid. This release has a lot of user contributions (Thank you Mark) and add more power to jqGrid. Here is the list of the most important features:
New API – now we follow the concept of jQuery UI calling conventios
RTL support
Columns Reordering
Rows Reordering (sortable rows)
Drag and drop rows between two or more grids
Custom Validation
Custom creation of input elements in editing modules
New Column Chooser with ability to resort columns
Full control of all ajax requests
Loading data while scrolling
… and much more
All these new features can be seen http://www.trirand.com/jqgrid/jqgrid36/jqgrid.html">here
The beta again with the demo can be obtained from here
We working hard on documentation, so have a patience until we document all fixed bugs and new features.
We hope that this can be done at end of next week (where we expect to publish the final release)
It'd also be great to have a callback function for whenever a tree node is expanded / collapsed, if that is possible.
For example, I have a "show/hide images" button that shows / hides images in every leaf. I can tell them to be shown or hidden on loadComplete — but if I show the images, then collapse the node, then hide the images, then expand the node again, the images will be shown (presumabally because they were removed from the DOM and stored in a js object, where they cannot be manipulated with the rest of the DOM while collapsed).
Still no bugs in the beta version on my end. Great work!
Just an update on the scrolling problems in ie6 – Ive not had much time to look into this, Im afraid.
But it seems that ie6 wont allow padding-top to go beyond around 32k (presumably, its a 16 bit quantity). Since I was using padding-top to position the table within the scrolling div, it doesnt work…
I've tried what looks like a simple fix, which is to use another div in place of the padding (so we now have an outer div with the full height of the table with all its rows, and an inner div taking up the space of all the unloaded rows before the visible part of the table, and then the table containing the visible rows).
That seems to work in FF, and newer IE's – but in ie6 the table contents dont always appear until you scroll up or down a couple of rows – and yet the developper toolbar shows it in the right place.
I'll keep digging (I need to fix this for my project too!) – but not ready just yet Im afraid.
New version of jqGrid is good. It hase a lot of new functionalitys. For me, the most interesting is "True scrolling Rows". Previous version is good but is is even beter.
I am not shure but I think that we have a Bug in it. When I want to go to specific Page by code I have problem. I use this code:
And second question is iti posible to select same row from page which is not loaded. If we use this method setSelection we can select rows which are loaded to grid. But is it posible to automatically load page on which is row. If I want to select row from Page 10 it is not posible becouse it is not on client side.
IMHO, as a casual javascript programmer and first-time jQuery user, the scroll:1 feature is what classifies this as the solution for server hosted tables. Thanks!
As for troubles I experience with 3.6 beta, I report the following:
height:"auto" grabs all data while any other number results in a partial line,
the "View x- y of z" has x and y wrong,
autowidth and resizing via jqGrid('setGridWidth', x, y) works fine, but it's not obvious from the examples,
(ui, not grid) difficult to adjust css' to suit my site's colors,
cannot set the style of data cells (using CDATA cannot tweak vertical alignment.)
Thanks again for a great tool. I look forward for getting updated documentation.
i) You're right, there's a bug – setting page wont work. Need to think about how to fix it.
ii) For selecting rows that aren't in the table – it gets tricky How do you know the id? (but I would also like a solution to this…)
@ale:
i) We can probably add an "exactRows" param to tell the grid to adjust its height to an exact number of rows
ii) The displayed numbers are the rows which are loaded into the grid (and I believe they are correct!). This matches the non-scroll behavior (try rowNum:100, table 10 lines high).
I thought about displaying the range of visible rows – but that seemed less useful (although probably not if you have rownumbers turned off). Perhaps there should be an option to select between the two…