Problem solved – here's the code that works:
$(“table.scroll”).dblclick(function(e){
Thanks Tony, but on this occasion I need to use an external dblclick handler because I am already using onSelectRow and onDblClickRow to enter inline editing mode.
When the user double clicks on certain cells a thickbox opens containing related info to the content of the clicked cell. I need to know the index so I can grab the corresponding header to work out which thickbox content to load.
Cheers,
Dave
Hi Tony,
I have applied a patch to my code which appears to work – not sure if it is the best way to do it but here is the snip from grid.common.js:
case “select” :
Thanks Tony, I thought I was going mad! I upgraded the code to 3.4 and the selects all went a bit crazy!
What do I need to change to fix the bug? Or have you posted a patch for grid.common.js?
Cheers,
Dave
Hi Tony, when will the final release be available? Can you send me the
final release so that I can test it against this problem?
Cheers,
Dave
Hi Tony,
I modified the code in grid.formedit.js. In the createData function I
changed this line:
dc = hc ? “style='display:none'” : “”;
to this:
dc = hc ? “” : “”;
This fixed my problem. I am able to hide columns in the grid but still
show them as editable and appear in the modal form.
Cheers,
Dave
I must be going mad! Setting the width to 0 has no effect. The columns
are still showing in the grid. Is there a way to hide them in the grid but
allow them to be shown in the modal form? If I mark them as hidden
then they disappear from the form as well.
Cheers,
Dave
Is it possible to add the date picker to an add/edit form (modal version)?
Cheers,
Dave
Hi Tony,
Ignore that last post I checked the page on FF2 and it worked – I then checked it again on FF3 and it is now working – no code changed!! So
probably a problem with FF3 rather than the grid. After restarting FF3 the modal appears.
I have also discovered a sneaky way to hide a column whilst still allowing
it to be editable! Set the width to 0 in the ColModel[]!.
Cheers for a great plugin!
Dave
Hi Tony,
Sorry I am on a Mac using Firefox 3 running jquery 1.2.3 (I haven't upgraded to 1.2.6 yet). Could the IE6/7 bug be appearing in FF3 as well?
Cheers,
Dave
Did anything happen with this? Is it now possible to hide a column in
the grid but still show it in the edit form?
Cheers,
Dave
MikeyJ,
Check that all files are being found correctly by using Firebug (in firefox). Click on the net tab. I found that some of the css and js files were in the wrong location when I first installed. Firebug highlighted where I had gone wrong. I corrected them and it worked perfectly.
Cheers,
Dave
Can we see the full call to the jqGrid and the navgrid?
Hi Tony,
I have a basic alert() running from the beforeSubmit function but how do I access any of the data? In the docs is says about it passing an array but I can’t seem to access it? The docs don’t show an example – could you provide an example?
Many thanks,
Dave
That almost works – looking through grid.formedit.js I think it should be this:
.navGrid(‘#pager’,{edit:false,add:false,del:false,search:true})
Got it working now.
Thanks,
Dave
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top