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

Update w/o full rebind

1 Answer 44 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Kevin Van Puyvelde
Top achievements
Rank 1
Kevin Van Puyvelde asked on 19 Apr 2010, 03:32 PM
Hi,

I've got a grid containing various columns from several joined tables. Also, the client requested Excell style filtering which means that for each column I'm generating a custom filter control in the header to mimic Excell (basically combobox checklist dropdown).

Now I also require updates to be possible for a few fields in this set, basically that shouldn't be too much of a problem. Let the update column generate and use the command events.
However, as I mention above, binding the grid takes some work and therefore some time as well. Clearly you can imagine that it's not desireable for any user to have to wait for the entire process to run each time an itemcommand is fired.
Both 'edit' and 'update' will  trigger the selecting events for each datasource. So the whole grid gets bound (selecting event of the main datasource/NeedDataSource event) and the combobox filters also get rebound (selecting event of those controls' respective datasources).

So ... shouldn't there be some way I can put a row in edit mode w/o rebinding the whole thing?

Actually it's sort of the same thing for the filtering. Can I not bind the data to the grid w/o rebinding all the custom filters?

Greetz

1 Answer, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 22 Apr 2010, 09:42 AM
Hi Kevin,

One possible option in this case would be to perform batch updates, as shown in this topic:

http://www.telerik.com/help/aspnet-ajax/grdperformingbatchupdates.html

Additionally, you may be interested to review the following code library:


I hope this information helps.

Sincerely yours,
Yavor
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
Grid
Asked by
Kevin Van Puyvelde
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Share this question
or