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

How to edit a dynamic grid?

1 Answer 23 Views
Grid
This is a migrated thread and some comments may be shown as answers.
neebs
Top achievements
Rank 2
neebs asked on 26 Aug 2010, 10:12 PM
Hi,

I am creating a grid programmatically, because I don't know the columns ahead of time. The grid is Index Funds vs. As Of Date. So there is a row for each As Of Date and a column for each Index Fund. The cell intersection is the monthly return for the Index Fund for the As Of Date. I have created Template columns to represent the returns in display and edit mode. If I edit a row, the edit controls appear. However when I save them by clicking the update button in the row, I am unable to obtain the newly edited values. GridEditableItem returns the item in the UpdateCommand event handler, however ExtractValuesFromItem returns an empty array and the SavedOldValues in the item is similarly empty. Is there any example of how to do this? I can post code if necessary.

Steve

1 Answer, 1 is accepted

Sort by
0
Martin
Telerik team
answered on 01 Sep 2010, 08:31 AM
Hello Steve,

I would suggest that you review the "Shipping Details" column from the following online demo:

Using server-side API

Note that the controls in the EditItemTemplate are bound by two-way declarative binding approach.

I hope this helps.

Regards,
Martin
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
neebs
Top achievements
Rank 2
Answers by
Martin
Telerik team
Share this question
or