Klaus Pesendorfer

Forum Replies Created

Viewing 15 replies - 1 through 15 (of 27 total)
  • Author
    Replies
  • in reply to: Bug with idPrefix (duplicate idPrefix) #99380
    Klaus Pesendorfer
    Participant

    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= {

    in reply to: Preserve scroll position after ReloadGrid #98890
    Klaus Pesendorfer
    Participant

    I've just found a simple solution for that problem on my own by extending the selectionPreserver function:

    in reply to: multiline rows breaks dynamic scrolling grids #98721
    Klaus Pesendorfer
    Participant

    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.

    in reply to: Scroll bug -> load last page multiple #97634
    Klaus Pesendorfer
    Participant

    I've had a similar problem and solved it with following code change:

    populateVisible: function() {

    if (npage) {

    Klaus Pesendorfer
    Participant

    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.

    Klaus Pesendorfer
    Participant

    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) {

    Klaus Pesendorfer
    Participant

    Thank you for the quick response.

    So, here is my configuration:

    // My CUSTOM FORMATTER:
    $.extend($.fn.fmatter, {

    Klaus Pesendorfer
    Participant

    see also:

    in reply to: Small but useful little Features for jqGrid 3.8.1 #96787
    Klaus Pesendorfer
    Participant

    here is one more: … to be able to pass the “modal”-option as option to the column chooser dialog …

    columnChooser : function(opts) {

    in reply to: Multiline rows. Is it supported? #96515
    Klaus Pesendorfer
    Participant

    Yes, multiline cells do work,

    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.

    in reply to: Order of grid events? #94424
    Klaus Pesendorfer
    Participant

    Hello Tony!

    I've just added a new callback event (“ajaxComplete”) to the grid which helps me with some performance measuring.

    @populate = function …

    in reply to: Order of grid events? #94344
    Klaus Pesendorfer
    Participant

    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.

    in reply to: Order of grid events? #94304
    Klaus Pesendorfer
    Participant

    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)

    in reply to: Sort Icon not always visible … #94158
    Klaus Pesendorfer
    Participant

    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 {

    in reply to: True scrolling Rows loads data too often #93918
    Klaus Pesendorfer
    Participant

    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.

Viewing 15 replies - 1 through 15 (of 27 total)

Stay connected with us in your favorite flavor!