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

Suggestions on asynch update of grid column

1 Answer 32 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Mark Williams
Top achievements
Rank 1
Mark Williams asked on 04 Apr 2010, 07:18 PM
I am looking for some advice on valid techniques for updating a column in a grid asynchronously with sort of notification. Here's the scoop...

I have a list of vendors in a grid (measured in the thousands). I want the ability to multi-select vendors and then kick off a task which verifies them via a server-side task. So, lets say that I select 20 vendors through multi-select. Then I click a "verify" button. I want this to initiate a task on the server which does the following:

. Sends the 20 rows to a server-side method (let's call it "ValidateRows")
. As ValidateRows iterates through the list I want the selected columns (in the grid) to initially show an hourglass or something.
. As the validity of any one row is determined the status changes visually in the grid
. Note that the per-row verification is not necessarily a quick thing (could take, say, 15-20 seconds each)
. I want the verifications to occur in parallel, rather than serialized, up to a maximum "thread count". So, if I send 20 rows maybe a thread count of 10 would mean that 10 are being checked at any one time.
. I don't want some server-side "service" waiting for all this. I want the verification task (the one that iterates through the sent rows on the server) to be initiated on demand.

Obviously Ajax looks like a good choice in terms of the visual treatment (in the grid) but I am not sure of the techniques I should use for the other elements of this.

I welcome any suggestions.

Thanks.

Mark

1 Answer, 1 is accepted

Sort by
0
Mira
Telerik team
answered on 08 Apr 2010, 07:35 AM
Hello Mark,

I suggest that you implement the desired functionality using RadAjax in the following way:
You can enable Ajax requests queueing, set the RequestQueueSize to the maximum number of groups of rows to be validated in different threads and fire an Ajax request for each group. Then, in the Ajax request event handler separate threads for each row can be started.
The loading panel could be shown and hidden explicitly over the currently validated row (which is rendered on the client as a table row) as explained in this help topic.

Please give this approach a try and let me know how it goes.

Kind regards,
Mira
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
General Discussions
Asked by
Mark Williams
Top achievements
Rank 1
Answers by
Mira
Telerik team
Share this question
or