that looks promising. Thanks!
Tony,
Here is the CSS for that DIV:
Thanks Tony!! Here's the bug link–much better details on the potential cause: /blog/?page_id=393/bugs/grid-scroll-bar-column-sits-outside-of-grid-parent-1/
This works perfectly in 3.6.5! Thanks!!
I've determined more facts about this and added it to the Bugs forum. The first fact is that my grid is sitting inside of a parent DIV. 2nd, the problem occurs in every browser I've tested, when the browser vertical scrollbar is present–if the browser vertical scrollbar is NOT present, the problem does NOT occur.
I have tested this in 3.6.5 and it is, indeed, fixed! Thanks!!!
HOWEVER, it turns out that this is NOT the cause of my problem with saved gridConfigs where the columns eventually lose width when the grid page(s) is revisited. That problem seems to be a combination of saving the config and another bug I will report where, under certain conditions, the grid scrollbar column shows up on initial load just outside of the parent element.
To work around this, using onGridComplete I was triggering my window.resize event which is bound to my method for making the grid width track the parent element width properly using setGridWidth(). When shrinkToFit is enabled, this initial gridComplete::setGridWidth() call is, natually, lossy when the shrinkToFit formula results in float numbers (I'm assuming these are converted to real numbers and so, across multiple columns, pixels are lost). So, my saved settings, saved on page-Unload, always have widths a little smaller than the previous save.
Oddly enough, the issue of the over-hanging scrollbar is inconsistent–it happens all the time in IE 8, but, in Chrome and Firefox only when the window is maximized to my 16 inch screen. Again, I'll be reporting this on the bugs forum as a separate issue.
suweeet! Thanks!! Any idea on the possible target date for that release?
Thanks!
Thanks Tony!! I'll give that a shot. –David
Hey Tony! Thanks for your reply. There are, indeed, some hidden fields. This is another one of the features I am saving to the server as my user's settings. Some columns permanently hidden by default and others might end up hidden by the user. Thanks, David
tony said:
Hello,
Do you have hidden fields?
Best Regards
Tony
OK. I'm a dolt. The config option is NOT on the colModel but, rather, on the gridOptions object! Ma bad.
I changed this:
{”rows”:[],”page”:1.0,”total”:1.0,”records”:0.0}
to this:
{”page”:1.0,”total”:1.0,”records”:0.0}
I also found that updating my jqGrid version to the latest release (I was one version behind) eliminated some of the issues I was having with resizing empty grids.
I figured it out. “rows” cannot be defined in the JSON of there are no rows. So, even if “rows”: [] this won't work. You have to NOT have rows defined in the json.
Thanks. I was getting an unrelated error that led me to believe I needed to pass data to the grid on instantiation. I resolved that bug and add/remove rows is working fine.
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top