Showing posts with label delayed. Show all posts
Showing posts with label delayed. Show all posts

Wednesday, March 21, 2012

Delayed GridView Loading

I have a GridView that is loading data from a web service. For each item in the table a call must be made to the web service and they are averaging around a half second per call. So for a GridView with 83 rows it takes around 41 seconds to load the page the first time. After the page is initially loaded the data is cached so it doesn't take nearly as long. What I'm wondering is if there is a way that I could show the user the rest of the page and then load the GridView via Atlas once the rest of the page loads so that the user can at least see the page is loading and doing something? Icing on the cake would be to be able to display a loading gif while the GridView is loading.

Thanks,

Eric

Hello, I think using an UpdatePanel control will make things better.

A.

Delayed events.

i've been working on this all day and haven't made it very far.

I have 3 combos in an updatepanel with autopostback =true. combo 2 is dependant on 1, and combo 3 is dependant on 1 or 2. When i select a value for combo1, it's SelectedIndexChanged fires. Inside his procedure there is code to set the values of the other combos. The SelectedIndexChanged events don't fire for the other combos. Instead they wait until another button has been pressed then they fire before that buttons clicked event. I've tried calling the update method of the updatepanel within the selectedIndexChanged event of combo 1 but this doesn;t help. i've also put each combo into it's own update panel and tried calling their update method from combo1 changed event, but no success their either. is there a way for me to force the queued events to fire?

any help would be appreciated,

thanks

kenny.

No need to reinvent the wheel; I'd recommend using theCascadingDropDown control.

-Damien


cheers damien,

i'll take a look into it.