I have an Update panel on an ASP.NET page. Under certain circumstances, when the panel is called back, I add some DevExpress controls to it. (Grid Control and a few combo boxes, etc.) This seems to work, but when I click on the controls they are non-responsive.
My guess is that there is inline script which is expecting to be run when the page is parsed, which isn’t being run in this circumstance.
Using style – “display : none” to hide the controls until they're needed is not an acceptable alternative.
Is there a work around? This is showstopper for us.
Thanks for the suggestion.
I did some testing. Unfortunately, using the register scripts method as you outlined, only seems to work in the scenario described in your documentation.
That is, if the control is added to an update panel the first time the page is loaded, and it’s visible property is set to false.
Using the register scripts method does not seem to work if the control is not first created until an Update Panel update event has occurred.
Adding the control on page load and setting the visible property to false is not a good solution for us.
We are trying to speed our page load time, by creating controls as needed from Update Panel post-backs.
Are we missing something? Can you suggest a different way to get the control’s scripts registered properly.
My sample project is attached and it works fine here. Please run it on your machine and let us know what we should do to reproduce this issue. Or send us a page where we can reproduce this issue. We will do our best to help you.
We compared the sample project you sent us to eh one we are working with and found that the following entry in the web.config causes the our application to exhibit the broken behavior we described:
<add key="DXEnableResourceMerging" value="true"/>
Why would this key cause the problem we are having?
What should we do to fix or investigate?
Is your intention to post an answer to your own question?
- If so, then proceed.
- If you simply wanted to post additional information, ask for further clarification, or to just say "Thanks!", please click Leave a Comment.
- If you wish to edit your original question, please use the Edit button in the Toolbox at the top right corner of that entry.