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

Provide data for edit

1 Answer 35 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Matt
Top achievements
Rank 1
Matt asked on 23 Jun 2010, 07:42 PM
We are using a user control for editing in our RadGrid.  Whenever the edit link is clicked, it appears the grid goes back to the datasource and pulls all of the items and then filters to list to the edit item.

For us recreating that entire list can sometimes be a costly, multiple hits to the DB for security privilege checking, validations as to whether an item can be deleted, etc. This is especially painful when its simply going to be filtered down to one item.  Is there any event, etc. where I could step in and just provide the single item that is needed?  The datakey is set on the grid so I could look up just the single (entity in this case) that is needed.

Thanks,

Matt

1 Answer, 1 is accepted

Sort by
0
Accepted
Tsvetoslav
Telerik team
answered on 25 Jun 2010, 07:48 AM
Hi Matt,

I am afraid avoiding the rebinding of the grid and the consequent pulling of the data from the database is not possible. You can use some type of caching the data and passing it to the grid control whenever you deem database operations are not necessary.

Hope it helps.

Regards,
Tsvetoslav
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
Matt
Top achievements
Rank 1
Answers by
Tsvetoslav
Telerik team
Share this question
or