Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
665
How to get the edited grid row value
posted

Hi All,

Please help me to solve this issue on Ignite-UI grid Edit, i getting the popup to show edit values but when click done where i get the value. please help me. Thanks

Parents
No Data
Reply
  • 17590
    Verified Answer
    Offline posted

    Hello Tamilmani,

    Thank you for posting in our community.

    What I can suggest for achieving your requirement is handling editRowEnded event. This event is fired after the Done button is clicked and row editing has ended.  From the event arguments a reference to the old and new values for this row are available. For example:

    //Bind after initialization    
    $(document).delegate("#grid", "iggridupdatingeditrowended", function (evt, ui) {
     // get value of cell in column with the key
        var newJobValue = ui.values["Job"];
        
        // to get old value of cell in column with the key
        var oldJobValue = ui.oldValues["Job"];
     
     alert("Job old value was: " + oldJobValue + " Job new value is: " + newJobValue);
    });

    I am also attaching a small sample illustrating my suggestion for your reference. In my sample I am when editRowEnded is fired I am showing an alert with the previous and the new value of the "Job" column.

    Please have a look at my sample and let me know if you need any further assistance with this matter.

    igGridAlertWithOldValuesUpdating.zip
Children