RadGrid extract edited values client-side from auto-generated editors

Thread is closed for posting
1 posts, 1 answers
  1. Answer
    Telerik Admin
    Telerik Admin avatar
    1572 posts
    Member since:
    Oct 2004

    Posted 25 Nov 2010 Link to this post


    RadControls for ASP .NET AJAX version

    2010 Q3 and later
    .NET version

    2.0 and later
    Visual Studio version

    2008 and later
    Programming language

    Browser support

    all browsers supported by RadControls for ASP .NET AJAX

    The project demonstrates a small javascript object that is used to extract edited values from auto-generated edit forms in RadGrid. The component works with all supported RadGrid edit modes (InPlace, EditForms and PopUp).

    To extract edited values, you need to create an instance of the object passing the RadGrid client component in the constructor:

    var grid = $find("RadGrid1"); //RadGrid.ClientID
    var extractor = new GridEditDataExtractor(grid);

    Now you can use the following 2 methods to extract edited values:

    //Extract edited values from data item
    //specified by its hierarchical index,
    //HTML TR element or its ID
    //Extracts values from all edited items

    Download the attached sample project to try it yourself.
Back to Top

This Code Library is part of the product documentation and subject to the respective product license agreement.