0
I have a problem that I haven’t been able to solve in months! I’m using a package of bootstrap and JS styles, in which they refer to my _Layout. On all pages that are rendered and inherited from the Main page, everything works smoothly. As soon as I opened the windows in modal, the problems began to arise... Note that the Dropdown in the Index page is stylized correctly, but the same dropdown in the Create view does not work.
For my modals to work, my controller returns a "Create" View, but when it is loaded in the modal (Situated in Index), I need to play null for the Layout property, otherwise the window won’t open. (This could be a problem). I tried to open the Modals using Partialviews, but it also doesn’t work...
I’ll leave the link to anyone who wants to take a look at the project: https://onedrive.live.com/? id=40838E65B9F8787E%21120&Cid=40838E65B9F8787E
Thanks for the reply @ Nuno Maximiano, but how do I do it?
– Master JR
in the css file you load you should add something like
.form-horizontal{
z-index:99999;
}
, but this will affect all forms with this class or directly in the added divstyle="z-index:99999;"
– Nuno Maximiano
I advise you to first add the style element directly into the modal for testing and then move on to the css, but you should create one or an id for the modal or class so that you don’t see all the elements with the '.form-horizontal' class'
– Nuno Maximiano
Didn’t work :(
– Master JR