I'm getting some strange behaviour with a LoadingPanel showing only after the second and subsequent postbacks.
The ASP:Button control that initiates the request is on a content page and is under the management of a RadAjaxManagerProxy.
I'm pretty certain that the problem relates to the initial enabled/disabled state of the button. The button is enabled only when the user selects a value from a dropdown list.
I had originally set the button's Enabled property to False at design time and then enabled the button client-side at runtime. This resulted in the button not working at all. So I now leave the button enabled at design time and then disable it in Javascript in the window load event at runtime. Then, when the user makes his dropdown selection, the button is re-enabled (again in Javascript).
Functionally, everything works fine with the button - it runs my query and the results are asynchronously shown in my grid.
The problem is that the LoadingPanel only shows on the second and subsequent runs of the query (i.e. second and subsequent clicks of the button). It doesn't show when you run the query after the page first loads so there is a long pause with no visual feedback before the query results are shown.
Any thoughts?
The ASP:Button control that initiates the request is on a content page and is under the management of a RadAjaxManagerProxy.
I'm pretty certain that the problem relates to the initial enabled/disabled state of the button. The button is enabled only when the user selects a value from a dropdown list.
I had originally set the button's Enabled property to False at design time and then enabled the button client-side at runtime. This resulted in the button not working at all. So I now leave the button enabled at design time and then disable it in Javascript in the window load event at runtime. Then, when the user makes his dropdown selection, the button is re-enabled (again in Javascript).
Functionally, everything works fine with the button - it runs my query and the results are asynchronously shown in my grid.
The problem is that the LoadingPanel only shows on the second and subsequent runs of the query (i.e. second and subsequent clicks of the button). It doesn't show when you run the query after the page first loads so there is a long pause with no visual feedback before the query results are shown.
Any thoughts?