This is a migrated thread and some comments may be shown as answers.

[Solved] DataBind RadGridView.. but Update Client Screen Row by Row as it Binds... This Possible?

3 Answers 79 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Fred
Top achievements
Rank 1
Fred asked on 16 Apr 2009, 09:20 PM

I'm trying to do a proof of concept... I have 1000 records in a dataset that I'm binding to a GridView... (Which will eventually come in from a RadUpload control and I'll import into a database and then bind to a gridview)...

I am using the RadProgressManager and RadProgressArea to count row by row on the ItemDataBound event of the RadGridView...

What I'm trying to do now, and my question, is how can I get the RadGridView to update on the screen after each row has been added?

After each ItemDataBound update it, using what? I'm trying to see if I can somehow do it with the LoadingPanel control, but not sure. Seems like I need to do some type of Ajax call somewhere... maybe even using jQuery? No idea.

Any thoughts?

3 Answers, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 22 Apr 2009, 08:27 AM
Hi Fred,

Van you please elaborate a little bit more on your setup. Do you want the rows to be shown one after the other, gradually, as opposed to having the whole control render at once? Or perhaps another type of progress indicator? Any additional information will help me better address the question at hand.

All the best,
Yavor
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Fred
Top achievements
Rank 1
answered on 22 Apr 2009, 09:46 PM
Hey Yavor, thanks for the reply.

Actually I'm trying to show the GridView row by row gradually as you said.

I'm also trying to use the RadProgressArea to count and show progress as it progresses. So it's actually two things.

I'm willing to focus on the Gridview as I think I have the RadProgressArea almost worked out.

So the idea is the client an huge excel sheet, and then each row of data is massaged and converted and inserted into the database. At that point I'd like to update the gridview's datasource and show the record that was just added.  Each row displaying as it goes. Some rows will be green if successfull and other's red that failed.

Basicaly a fancy way of import and progress updates.

I did a little research and some people saying you can do it maybe with a regular updateprogress from the controltoolkit, so thought maybe there was a way to do it with the Rad controls.

So goal, is grow the gridview row by row as it gets new records and display them on the screen gradually until it's all done.
0
Yavor
Telerik team
answered on 27 Apr 2009, 11:58 AM
Hello Fred,

Unfortunately, the desired setup is not available in the control. This is due to the way it is populated with data and rendered. Once the control retrieves its data, it is rendered on the client.
Another option which you may consider is to attach to the GridCreated event handler, hide all the rows rendered, and then show them one by one on a specific interval. This can be accompanied by some visual indication of the process.

Greetings,
Yavor
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Grid
Asked by
Fred
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Fred
Top achievements
Rank 1
Share this question
or