Hello,
I've verified the data, and it is totally correct, but then I've found the exact position, when the problem happens … it is the sortGrid call and not the addRowData!
After the data was added with addRowData the ids where still correct, but after calling the sortGrid method the ids got wrong (with double-prefix)!
Here are some more details about my configuration:
tableSettings= {
I've just found a simple solution for that problem on my own by extending the selectionPreserver function:
This issue still exists with jqGrid version 4.1.2!
Dynamic scrolling does not work when having multiline rows in the grid, especially this is easy to reproduce when having a big first row (with e.g. 5 lines as multiline content) and all other rows as normal single-line rows then the paging to the second page (via dynamic scrolling) won't work – it again loads page 1 from the server and adds page 1 below page 1 twice beginning with the first row again after the last row of the first page.
Is there any better solution instead of disabling multiline rows via CSS?
… my workaround for this bug: using “white-space: nowrap”
.ui-jqgrid tr.jqgrow td {font-weight: normal; overflow: hidden; white-space: nowrap; height: 22px;padding: 0 2px 0 2px;border-bottom-width: 1px; border-bottom-color: inherit; border-bottom-style: solid;}
It seems that the code calculating the rows, pageSize, etc. is based on the rowheight of the first row, which won't work if the first rowheight is different from the others.
Maybe this could be rewritten using the actual height of each row of the current page, but that solution might be too slow?
Kind regards,
Klaus.
I've had a similar problem and solved it with following code change:
populateVisible: function() {
…
if (npage) {
Thank you for all your hints and explainations.
I've solved it using a local/global javascript variable storing the complete grid rawdata.
I'm using the addRowData, delRowData and setRowData because of their easy usage for modifying the grid data locally.
(In other situations I use the client/server method using JSON data loaded from the server.)
Kind regards,
Klaus.
Here is some missing information:
The variable newTableSettings is my settings object passed to the constructor of jqGrid later on:
...
newTableSettings["afterInsertRow"] = editDialogRangeSerializeRawData;
$("#mytable").jqGrid(newTableSettings);
function editDialogRangeSerializeRawData(rowid, rowdata) {
Thank you for the quick response.
So, here is my configuration:
// My CUSTOM FORMATTER:
$.extend($.fn.fmatter, {
see also:
here is one more: … to be able to pass the “modal”-option as option to the column chooser dialog …
columnChooser : function(opts) {
BUT: there seems to be a problem when using true scrolling … in such situations the grid does not scroll beyond the end of the first page and does not load the 2nd page
… it seems that the grid has a problem calculating the correct amount of displayed rows?
I'm currently using jqGrid 3.6.5 … maybe I'm trying to upgrade to 3.8.1 some time.
Is there any upgrade Doku? Are there any major changes I've to regard when upgrading?
Kind regards,
Klaus.
Hello Tony!
I've just added a new callback event (“ajaxComplete”) to the grid which helps me with some performance measuring.
@populate = function …
Thank you.
It's no problem which event is called first, but I need a SPEC with the order of the events I can rely on.
Please describe the exact order of all callback events in the documentation (Wiki – Events-page).
Kind regards,
Klaus.
no, I'm using normal paging (and jqGrid 3.6.5).
why? does the event order differ?
I need these callbacks to separate the network time and the rendering time the grid uses, so the order is very important (1 event before the request is sent to the server, 1 event after the response from the server and the last event after rendering is done)
Hello,
here are my changes to put the sort-icon to the front of the column header cell … (based on jqGrid 3.6.4)
CSS:
/* fix table sort icon – position to the left */
.ui-jqgrid .ui-jqgrid-sortable span.s-ico {
Hello,
look at this post: http://www.trirand.com/blog/?page_id=393/bugs/true-scrolling-problems/
… using a very little scrollTimeout should solve the problem.
Kind regards,
Klaus.
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top