Current filter:
                                You should refresh the page.
                                0
                                  • 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.

                                0

                                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

                                0

                                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.

                                0

                                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

                                dxSample.zip
                                0

                                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?

                                0

                                Hi Jay,

                                I think that this is a bug. I've converted your question to a bug report and we will research it further. You will be notified when its status is changed.

                                Thanks,
                                Plato

                                You must  log in  or  register  to leave an answer

                                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.