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
125
How to get the value of textarea from popup to replace the value of cell in the iggrid
posted

Hi all,

I need to add comment column in the iggrid but the grid only shows less number of characters.So i decide to show the comment in the popup.

and edit the comment and i want to save the edited comment back to the cell from the popup.Kindly Please help me with this.

Parents
No Data
Reply
  • 17590
    Verified Answer
    Offline posted

    Hello Lakshmi,

    Thank you for posting in our community.

    Once the new comment is entered, the value of the textbox can be retrieved and set to the igGrid`s cell. This can be achieved by using the setCellValue method. This method sets a cell value for the specified cell. It also creates a transaction and updates the UI. setCellValue has three parameters :

    • rowId - the primary key of the row the cell is child of
    • colKey - the column key of the cell
    • value - the new value for the cell

    For example:

    //handle Save button click

    $("#saveButton").click(function(){

       //retrieve text box value
       textboxval = $("#commentTxt").val();


       //set this value to the igGrid`s cell
       $("#your_grid_id").igGridUpdating("setCellValue", 5, "YourColumnKey", textboxval);

    });

    Please let me know if you need any further assistance with this matter.

Children