Skip Navigation LinksHome / Community & Support / Code Library / ASP.NET and ASP.NET AJAX > Grid > RadGrid extract edited values client-side from auto-generated editors

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

Feed from this thread
  • Posted on Nov 25, 2010 (permalink)

    Requirements

    RadControls for ASP .NET AJAX version

    2010 Q3 and later
    .NET version

    2.0 and later
    Visual Studio version

    2008 and later
    Programming language

    C#
    Browser support

    all browsers supported by RadControls for ASP .NET AJAX


    PROJECT DESCRIPTION
    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
    extractor.extractValues(itemIndexOrId);
     
    //Extracts values from all edited items
    extractor.extractAllValues();

    Download the attached sample project to try it yourself.

Back to Top

Skip Navigation LinksHome / Community & Support / Code Library / ASP.NET and ASP.NET AJAX > Grid > RadGrid extract edited values client-side from auto-generated editors