Jay Warshaw
02.02.2010
Hi Jay,
Please try the solution from the Adding an aspxGridView control to the page during an AjaxPanel Postback thread. Does this help you?
Thanks,
Plato
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.
Hi Jay,
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.
Thanks,
Plato
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:
<appSettings>
<add key="DXEnableResourceMerging" value="true"/>
</appSettings>
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.
Facebook
Twitter
Google+