Hi there,
I would like to know if it is possible to do a clientside repaint of the webexplorerbar similarly to what is done with the webtab?
I do not want to do a reload / postback as this inpacts on the client UI experience.
My environment is as follows:
VS2010
IE9
Widows 7 32 bit.
Infragistics ASP.Net Version 11.2.20112.2125
.Net 4
DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
Regards.
Hi JJB,
Thank you for posting in the community.
I have researched the matter and while the repaint function is available for WebTab, it does not seem to be available for WebExplorerBar. If you provide me with more specific details as to the changes you wish to be applied on the explorer bar control, I would be happy to look into possible ways to implement them on the client.
Please do not hesitate to contact me if you have any additional questions.
Hi Petar,
Thank you for the prompt reply.
The situation I have at the moment is that the WebExplorerBar contains a dynamically generated html table.
Under certain conditions a small icon is displayed over a relevant html cell using a layered div.
I have clientside logic to reposition the icon when the browser is resized. The problem I encounter is that when I maximise the browser the clientside code is excecuted, but the icon does not reposition. I "mouse-over" a different IFrame which contains another webexplorerbar (on mouse-over client-side code must be firing). This causes the icon to snap back into the correct (calculated) position.
Strangely, on minimizing the browser, everything seems to position appropriately.
I hope this explanation is clear.
Hello JJB,
Thank you for your reply.
Can you check whether hiding and displaying once more the div in which the image in questions is located in the code responsible for handling window resizing causes the image to be redrawn in the correct position ? It would be really helpful to see the js responsible for that functionality to examine this further.
Please find an example of the js attached.
Thank you for the sample. Apologies for the delayed response.
After researching this, it seems that this may be caused by the "position" of the div image container. Can you try setting the selectedcellimagediv's position to "fixed" (or absolute/relative):
selectedcellimagediv.style.position = "fixed";
Please let me know if this makes a difference.
Hello Petar,
I have since the post had to revisit the DOC TYPE specification. It was causing the browser to go into quirks mode which caused the behavior.
Thank you for your reply. Glad that you were able to resolve this.
Please do not hesitate to contact me if you have any further queries.