Dear support,
We have multiple BootstrapPopupControl
instances that are each attached to a BootstrapButtonEdit
. Inside each BootstrapPopupControl
, we've placed a ASPxGridView
, which is bound to an ObjectDataSource
using custom data binding. We were expecting the data binding not to be run until the popup content is visible, but apparently, it is run before that, so that the initial page load is delayed quite a bit (since it needs to wait for all SQL requests and data binding to happen).
I've attached a small repro for this issue. You'll find that the Default.aspx
page loads much more slowly than the Fast.aspx
, because the simulated database query is run during the first load, even though the popup is not visible, and the popup is set to LoadContentViaCallback="OnFirstShow"
. In our view, it does not make a lot of sense to perform costly data binding if it's not obvious that the grid will be displayed.
Can you please advise us on how to correctly avoid data binding until the popup is shown by the user?
Thank you!
Best,
Johannes