DevExpress popup does not overflow outside of iframe - asp.net

I included a FilterControl inside an iframe popup. When I open the column selector (or any other DevExpress combobox) the popup does not 'overflow' outside of the frame. What I want is to be able to see the contents of the popup outside of the frame, instead of having to scroll down to see the whole option list.
Basically this is how it looks like (obviously not actual code):
<iframe>
<dx:ASPxFilterControl/>
</iframe>
Is this possible? All of our popups in the site are created in the same way and we wouldn't want to use different popups just because of this.

It's impossible. This is how iframes work. Check the following threads:
How to show HTML element outside iframe boundaries
Is there a way to have content from an IFRAME overflow onto the parent frame?

Related

Drop scroll using select in last line of the table

I made a custom dropdown. In the last line of the table, scroll is created when dropdown is open. I need to scroll to see dropdown elements. I do not want this.
I want you to open up the body of the dropdown or enlarge the body. How can I do it?
Document is already enlarged by enlarged content/element, scroll shows that. You need only scroll to view entire enlarged element, f.e.:
elmnt.scrollIntoView(false);
Real problem (using react) is that should be done after change state and rendering enlarged element.
I probably would use setTimeout called from setState callback. It's quite common way to be sure it's called after updating state/view. You'll find examples on SO.

How to make elements with high z-index allow click events at elements below?

I'm developing a chrome extension. It is basically a toolbar standing at the upper part of the visible screen, added to the page as an Iframe.
My problem is that I set it a high z-index to make sure the bar appears; and then the elements below it (below the Iframe) gets not clickable (lets say I got a piece of the iFrame that is transparent, what allows the user to see the elements below it). Other Stack Overflow questions doesn't address my problem, since they suppose I have control at both the upper and the lesser elements, and I don't have at the lesser one.
If only certain parts of the iframe should let the clicks pass through then in the iframe's onclick handler send a message to the content script of the page via postMessage with the click point coordinates and in the content script's document.addEventListener for that message use querySelectorAll(':hover') or document.elementFromPoint while temporarily hiding the iframe to find the clicked element and then dispatch a new click event to that element via dispatchEvent (plus the iframe's top-left corner offset in the original document).
You can do this simply by using CSS
pointer-events: none
height: 0px;
overflow: visible;

Handle scrollbar in selemium2

How I can get scrollbar within div element using selenium webdriver and firefox browser?
I need to validate case: scroll bar will appear when table (table located inside div) has more then 10 rows.
I think if developed is publishing the scroll bar properties in HTML properties, then you will be able to capture, else you will have to discuss with developers.
After that you can get the row count using webdriver method
driver.findElements(By.xpath("XPATH expression")).size();
and using a if condition You can validate the scroll bar.
Thanks

anchors and iframes?

I have an HTML document with an iframe in it. Now, if you click a certain button/link in the iframe, I want the parent document to scroll back to the top.
I'm not sure how to make that work. When I put an anchor at the top of the parent document, and have the button do something like window.parent.location = '#anchorname';, then the browser opens the iframe document itself, having the parent one vanish.
First of all, I suggest the usage of JQuery scrollTop (see here) to scroll on top. This is not enough, however, you need to call your function from the page in the iFrame, so, supposing that your function which scrolls your document is called 'foo', you can call your function from the page in the iFrame this way:
window.parent.foo();
Hope this helps.

jqModal iframe issue

I have a asp.net page (page1.aspx), inside that I have a iframe, Inside the iframe I am loading another page(page2.aspx). Inside that page(page2.aspx) I have a button. When I click on that button jqModal pops up. It comes up covering the iframe which is in page2.aspx. How can i make the jqModal div to allocate parent page(page1.aspx) full space.
Presumably you have to pass through the identifier for the parent page all the way through to the jqModal div and use that as the anchor point.

Resources