Hi
I have 12 popup boxes on my page, each one with a gridview and an attached datasource (sqlDatasource and Object datasource).
The popup box is set to "
LoadContentViaCallback="OnFirstShow"
The gridview is bound to a datasource within the popup box
My problem is that the SQL data is all loaded on page load making my page very slow, is there a way to only load the datasouce when the popupbox is selected ?
The rest of thre page is data driven from a client table
Hello Andrew,
I'm afraid there is no built-in functionality to track which ASPxPopupControl is now selected, because, in fact, you're selecting controls inside it. Would you provide us with some screenshots or a screencast that illustrate the problem in action in order to find a precise solution to this problem.
Hi
A short video
note the screen load time is massive (15secs on local PC , up to a minute across a network.
showing the Client screen, first selecting a valid client with 4 disabiliities taken from Disabilities table
Then Add a new Client, because there is no RefNo all disabilities for all clients are loaded.
If you do an SQL Profiler, on Page load, all records from each and every table with a
Gridview located in a popup box are loaded.
Would it be possible to encapsulate the SQLDatasources in a loading panel at least showing 1 of XX datasources loaded?