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
145
getActiveRow() not working
posted


var grid = igtbl_getGridById('ManageLookup1xuwgLookupListing');
var activeRow = igtbl_getGridById('ManageLookup1xuwgLookupListing').getActiveRow();

// Set Status
var cmd = " Enabled ";
activeRow.getCell(3).setValue(cmd);
activeRow.getCell(3).getElement().innerHTML = cmd

}

line 2 is returning null due to which getCell() is giving error as "Unable to get value of the property 'getCell': object is null or undefined"

Parents
No Data
Reply
  • 22852
    Offline posted

    Pawan,

    Have you verified that there is an active row before this is called?  I am asking because if there is no active row then getActiveRow is expected to return null as documented in the WebGrid Object CSOM.

    If there is an active row, please provide more details about when this code is called/executed and how the row in the grid was activated and what row you expect to be active.

    Let me know if you have any questions with this matter.

Children
No Data