I place JqGrid inside a JqModal, but when I click on “add” icon on navgrid to bring up the edit form popup, the
Hello,
Yo have installatin problem, maybe you use the development CSS file – you should use the one NOT from src directory
Regards
Tony
Hi Tony,
Thank you for your suggestion. I have included the correct files. I did make sure I do NOT use any files from the src folder, but the exact problems are still showing.
For JqGrid in a JqModal, I change the included files to the following….
<link href="" rel="stylesheet" type="text/css" />
<link href="" rel="stylesheet" type="text/css" />
<script src="" type="text/javascript">
<script src="" type="text/javascript">
<script src="" type="text/javascript">
The edit/delete form and alertmod message are still showing in the incorrect position.
For JqGrid in an ui dialog, I change the included file files setting to the following….
<link href="" rel="stylesheet" type="text/css" />
<link href="" rel="stylesheet" type="text/css" />
<script src="" type="text/javascript">
<script src="" type="text/javascript">
<script src="" type="text/javascript">
<script src="" type="text/javascript">
I know it is fairly common to use a JqGrid inside an UI Dialog, am I the only one encountering the problems of “disabled” text input on the edit form popup and incorrect alertmod message position??
…..Help….
(note: alertmod message => The message you get when you click on delete icon on navgrid without selecting any records)
Hello,
I do not think so. Please clear your cache and in firebug see if you have the proper files loaded.
Best Regards
Tony
Hey Tony,
Thank you for your suggestion. I tried but still without any success. I finally got around to put up a test site for you, I hope it will be easier for you to check if you get a chance.
Test for jqgrid inside dialog(scroll all the way to bottom to click on popup)
Test for jqgrid inside JqModal
If you click on “delete” in navgrid without selecting any row, you can see the alert message's position is not aligned with JqGrid. Most importantly, when you try to add in “jqgrid in dialog”, the keyboard and mouse is disable in form editing modal.
Hello,
In the exmple I see that the first modal whare the grid is is 3000, while the grid add dialog has a z-index 950
Please correct this to see the problem correct
Regards
Tony
Hi Tony,
There are actually two differenct examples.
In example one, JqGrid inside UI Dialog
The z-index of the “dialog” that contains the grid is 802, and the grid add dialog z-index is 950. They are ok in this case, but you can NOT type/input anything in the grid add dialog.
In example two, JqGrid inside JqModal
Yes, you were right. The z-index of the “jqModal” that contains the grid is 3000, while the grid add dialog z-index is 950. I changed the default jqModal z-index to 800 to bring the grid add dialog to front. This is done but the grid add dialog is always poping up in the top of the page instead of poping up in a positon relative to the grid.
Both examples, when you click on delete without selecting any rows, have the same problem of incorrect alertmod position .
Do you have any insights to these two separate example's problems? Thanks!
Hello,
Thanks. The problem is in first modal, and not in jqGrid.
If the first modal has a position : absolute with the appropriate top and left values evrething will work as in first example.
Regards
Tony
Hi Tony,
Thank You! This example, JqGrid inside JqModal, is working now after I set first modal's position: absolute, but the “alertmod” modal is still always showing on the top – for example, the warning message you get when you click on delete without selecting any rows. Any thought?
As for this example, JqGrid inside UI Dialog, the disabled add modal probelm is still haunting me. Please see picture below. I know from your blog, you decided not to use/support UI dialog with JqGrid, and JqModal was applied instead. Could this be the reason that they don't work so well together?
Hello,
I see this and I could not tell you currently which is the reason.
Please live the link for a couple of days.
Thank you.
Best Regards
Tony
Any Update on a work around for this issue. I also have been having trouble getting the add/edit/warning no row selected modals to show up above my ui dialog that has a jqgrid load into it. THey appear behind. I've set the z-index of the ui dialog to 700 and still shows up in front of the add/edit dialogs. any insight into a work around would be appreciated.
thanks.
tim
The isssue with the add fields being disabled has to do with the modal:true setting on the UI Dialog. Even though you have overridden the z-index for the dialog modal setting i believe disables all interaction with elements that are not children of the UI dialog. Therefore show up as enabled but are really disabled. I changed my outer dialog to modal:false and it works for adding and editing. Still not sure about the alertMsg positioning however.
tim
timbrown said:
The isssue with the add fields being disabled has to do with the modal:true setting on the UI Dialog. Even though you have overridden the z-index for the dialog modal setting i believe disables all interaction with elements that are not children of the UI dialog. Therefore show up as enabled but are really disabled. I changed my outer dialog to modal:false and it works for adding and editing. Still not sure about the alertMsg positioning however.
tim
Yes Tim,
Thank you for sharing your finding, but I need to prevent user from doing anything else when UI dialog pop up, so modal:true is not an option for me. I have a hard time getting the mechanism between UI dialog and JqGrid's own JqModal to work smoothly toghether….they work great most of time….but unfortunately not in this scenario.
I'm having this problem too :((
I have a jqgrid, which pops an edit form with one of the fields being another jqgrid. When I Add/Delete rows in the top-level grid, all dialogs are under and aren't even visible unless you move the grid out of the way.
Ok, I think I have it fixed here:
http://github.com/vchekan/jqGrid/commit/792d8d85da532f507215d83f594f262578c22cc2
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top