jayarjo

Forum Replies Created

Viewing 10 replies - 1 through 10 (of 10 total)
  • Author
    Replies
  • jayarjo
    Participant

    Just out of curiosity set the scroll to 10 instead of 1 and now it works! Probably 1 is interpreted as true and not as value. Awesome!

    Great job Tony, I'm constantly finding new things in jqGrid :) Thank you so much!

    jayarjo
    Participant

    Interesting, just noticed that true scrolling demo actually always empties the table before preloading new rows. It's exactly the behavior I'm looking for, although I couldn't find what parameters are different from the ones I use in my installation.

    From what is written in documentation:

    “scroll

    boolean or
    integer

    Creates dynamic scrolling grids. When enabled, the pager elements are disabled and we can use the vertical scrollbar to load data. When set to true the grid will always hold all the items from the start through to the latest point ever visited.
    When scroll is set to value (eg 1), the grid will just hold the visible lines. This allow us to load the data at portions whitout to care about the memory leaks. Additionally this we have optional extension to the server protocol: npage (see prmNames array). If you set the npage option in prmNames, then the grid will sometimes request more than one page at a time, if not it will just perform multiple gets.”

    I can conclude that I should use scroll = 1, right? But that's just what I do. Hm… lost.

    jayarjo
    Participant

    I think there should be a mechanism to unload previously loaded pages, if the bug that I described depends on the number of rows.

    in reply to: True-Scrolling Bug with jqGrid 3.6.5 #95077
    jayarjo
    Participant

    One thing that I think is also related to a scroll somehow.

    I've got thousands of rows in my table and when they are all already preloaded (no additional auto load happens on scroll), I notice a slight delay when I try to move a scrollbar with the mouse. Scrollbar doesn't move for at least 2-3 secs, it looks like it is undergoing some intensive calculation. After it starts moving, scroll becomes smooth again. But if I release it and try to drag the scrollbar again, interface hangs for some time again.

    When new rows are preloaded on scroll such delay maybe understandable, but I do not see why it can be happening when all rows are already loaded. This makes the interface to look a bit sluggish.

    Anyone any idea of what can be the reason for this and how to eliminate it maybe?

    in reply to: True-Scrolling Bug with jqGrid 3.6.5 #95055
    jayarjo
    Participant

    This has fixed my issue too, though. Tony, it does load the last page actually, but doesn't duplicate it any more. Were you meaning some different case?

    in reply to: True-Scrolling Bug with jqGrid 3.6.5 #95052
    jayarjo
    Participant

    @toolm, but as Tony said this will introduce new problem – last page won't be retrieved at all. Is this not true in your case?

    I wasn't thinking of fixing this in such way at all. Initially I was planning to do a reset of some kind after a change in grid height, but didn't know what to reset and where? I was hoping that it is somehow possible to accomodate scroll size to a new height maybe…

    What you guys think?

    in reply to: Scroll Bugs #94984
    jayarjo
    Participant

    I get this bug too, although I think that I know what causes it – I've got grid inserted into resizable container and I resize the grid as the container resizes. I guess that's where load on scroll gets messed up. Actually I wonder if there is a way to reset scroll params after I do a grid resize?

    in reply to: Selecting row on mouseDown rather then on Click..? #90182
    jayarjo
    Participant

    Thank you Tony for you response. I guess have not much free time to do so :)

    I've unbinded click handler and rewrote select logic for mousedown, as well as multiple selection stuff, I needed it to act more like it does in regular file browser.

    in reply to: Using jqueryUI dialog with jQgrid. #90077
    jayarjo
    Participant

    I'm not exactly a specialist of jgGrid, but I see two possible solutions to this. First is very simple – just set z-index of MessageBoxes to very high value (999 for example) through css (add a special rule to your stylesheet). Or if you got multiple dialogs, now and then covering each other, you will need to set z-index of MessageBoxes dynamically

    in reply to: altRows not working #89836
    jayarjo
    Participant

    When you add an altRows:true to your options object, you get .ui-priority-secondary class on every next row, you can add a css rule yourself, at least that's how I do it.

    But my problem is little different. altRows option works good at first, I get zebra grid, but it doesn't keeps it that way after sorting operation on any column. Rows get messed. Is there any established way to deal with this “issue”?

Viewing 10 replies - 1 through 10 (of 10 total)

Stay connected with us in your favorite flavor!