How to edit a dynamic grid?

2 posts, 0 answers
  1. neebs
    neebs avatar
    106 posts
    Member since:
    Apr 2007

    Posted 26 Aug 2010 Link to this post

    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
  2. Martin
    Admin
    Martin avatar
    811 posts

    Posted 01 Sep 2010 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top