I got around the second problem by using onRightClickRow. I don’t really like it because it means not all of my grids behave the same way — perhaps I need to put the “refresh the details grid” on a separate button so I can go back to single-clicking on a row to edit it.
Reg
I have solved the first problem — I changed only one of the settings to use SetGridParam and it was the other that continued to cause the problem.
Sorry about that.
Still working on the second issue — so if there are any ideas out there, I would certainly appreciate hearing them.
Reg
This forum software is a pain in the patoot — I hope you didn’t build it.
The stuff I entered between ‘ ' tags disappeared, so here it is in plain text, with the html tags altered so they don't disappear:
[table class="jqWrapper">[tr>[td>
[table id="tblcontents" class="scroll" cellpadding="0" cellspacing="0">[/table>
[div id="tblcontentsPager" class="scroll" style="text-align:center;">[/div>
[/td>[/tr>[/table>
Reg
Hi Tony,
Wrapping this in a div does not work, but putting it into another table does. So my code now looks like this:
the inner table, ‘tblContents’, is the on that is populated by jqGrid
I have no reference to jqWrapper in my CSS or other jscript, it is just so I remember what I’m doing with it.
I did not need to set the hieght to 100% (and that would probably defeat the purpose anyway if it set it to 100% of its parent.
This works just the way I want it to. The jqGrid is height of the retrieved rows (even when some of the rows vary in height), and my viewport is still slightly smaller than the browser window (with a scrollbar when needed).
Thanks very much
Reg
Hi Tony,
Thanks for the response; that is exactly what I did (i.e. copied from the demo). I have removed those lines so now I can edit and re-edit without a problem. I only hope I have not lost the benefit of that ‘feature’ — but I cannot think of why I would want it to behave that way.
Thanks again
Reg
Oops, just after posting my message, I foud that at least point #1 has been mentioned and responded to before. I apologize for missing that.
I am using IE8 emulating IE7, if that is any help, and I am also using 3.2rc of jqGrids
Reg
Hi Tony,
Thanks for the reply. Your last idea occurred to me as well: add a ‘move’ icon to each row that supports drag ‘n’ drop (it would be an non-editable field so it will work with in-line editing).
But see my comment in New Feature requests for another way to cope with this.
Sorry to hear you don’t have time (I can well understand that); I don’t have the smarts to build it — not enough experience in javascript. Perhaps it is of sufficient interest to someone else to build it. I can always hope.
Thanks
Reg
Much later .. whoohoo! got it working, This is so cool. On to the next step (trying to save my changes).
Sorry to waste your time when it was just my not reading or understanding the documention correctly.
Reg
No, still not there .. take my word for it, i have the links corectly in my page:
I presume my previous post lost the links references becuase I didn’t wrap them in , so here they are again
Reg
Just went and searched jQuery UI (wasn’t really all that hard to find once I knew what I was looking for) and yes, to have the ability to move items as that demo does would be phenom.
But back to the last question, is this possible (or easy) to apply to your grid? IS it something I can do or something that you need to build into your code?
Thanks,
Reg
Hi Tony,
Oh, it could be … I am new to jQuery, particularly where complex functions are involved, so perhaps it already exists — can you point me to the right place please?
Is it possible to easily overlay your grid with some other function that handles drag and drop, or something that does something similar?
Thanks
Reg
I would like to echo the original request; it sure would be nice for my app to Set only a single option to have jqGrid start closed and with no data. One of my forms probably has 6 – 10 tables, few of which anyone wants to look at every time they come to this page (but still want to be able see all of them when they need to). Even if it did the Ajax to retrieve the data, I wouldn’t care much; it is really just starting closed that is importnat for me.
Thanks
Reg
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top