You are a life saver.
Is this a known issue? It seems such a big bug not to have been noticed and fixed before.
Are there other known issues for IE? (Users are using IE7)
Thanks!
Looks likes this is a known issue to do with jqModal:
http://stackoverflow.com/questions/1348844/jqmodal-jquery-problem-div-not-updating-with-new-content
Basically:
jqModal.js line 64:
f=function(h){try{$(':input:visible',h.w)[0].focus();}catch(_){}}
i.e. tries to focus on first visible input field, which will fail, and throw up an error in firebug. Although I only see this sometimes!
It can work, then refresh on same page and then it fails. Very odd.
Fixed code in jquery.jqGrid.min.js thus:
s=function(a){var vis=b(“:input:visible”,a.w); if (vis.length>0) try{vis[0].focus()}catch(f){}}
i.e. I check to see there are any visible elements first.
FYI, My file sizes are:
ui.jqgrid.css 10,276 bytes
jquery.jqGrid.min.js 219,415 bytes
grid.locale-en.js 2,954 bytes
Dino.
Argh, now I'm getting it again, same as Kyle.
I downloaded all the modules, and the css is correct, using latest 3.7.2.
What does
Answering my own question:
Add returns new PK in JSON, like this:
{“PK”: 321}
So I get the PK and set the new row id to be the PK, then after row exists I set the PK cell value to the the same.
If there's a better way, please tell.
On the add handler:
{
Aha, found out why it was doing it:
rowNum: -1
If I set it to something else, like rowNum:1000 then sorting and filtering worked fine.
On a linked matter, using same grid, if I go to filter and try to filter
x equals y, it fails, i.e. shows nothing, even though
However if I say “not equal” it works as expected.
Similarly, if I ask for “begins with” empty string, it only shows me 2 rows, not all 3.
Any chance you could put a loadonce grid with small xml data, sortable, filterable, in the demos, to show that it works, or doesn't?
Thanks.
Aha, I was getting the same thing, and I worked out why, for me.
In my delete handler I was doing
beforeShowForm: function()
Aha, thanks, that's exactly what I wanted.
Thanks for the info.
Got stripes now, e.g.
.ui-priority-secondary td
{
Is there a simple way to just ask for different background colours on odd/even rows?
Thanks.
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top