I am using Asp.Net
jqGRid
in one of my pages , no issues with that.However I have a drop down menu which is containing only few submenus at this stage , the issue I am having is that my submenus appear behind of the jqGRid
.I dont know how do I solve this.I tried giving higher z-index
to the div which wraps the menu , but no help.Here is the image
Any suggestions is much appreciated.
Thanks
So the issue got solved by setting the following styles to my div jgGridDiv which was containing the jqGrid .Here is my code
#jqGridDiv
{
position:relative;
z-index:1;
}
It is working fine now.Also I set a higher z-index to my div which contained the menu , this is very important.
I would recommend you to use Developer Tools of Chrome to examine the "Computed Style" of the div where jqGrid are created.
I know two problems which can follow to effects which you describe:
<head>
on every page which has jqGrid the line <meta http-equiv="X-UA-Compatible" content="IE=edge" />
. It works with all !DOCTYPE
with exception HTML5 !DOCTYPE
( <!DOCTYPE html">
). More safe would be to set "X-UA-Compatible"
<system.webServer>
<httpProtocol>
<customHeaders>
<clear />
<add name="X-UA-Compatible" value="IE=edge"/>
</customHeaders>
</httpProtocol>
</system.webServer>
(like here , but with another value of "X-UA-Compatible"
HTTP header)
z-index
will be inherited from some parent div where you placed jqGrid. In the case you can consider to use place the <table>
and the pager <div>
inside of additional "container" div and set in the style of the div position: relative; z-index: auto;
position: relative; z-index: auto;
or position: relative; z-index: 1;
position: relative; z-index: 1;
(or other small value).
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.