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
40
getValue() ALWAYS EMPTY
posted

I have a webgrid, when a new is created, there is some validation performed on beforeExitEditModeHandler.

 However regardless whether there has been some data entered intot the cell it always returns empty

var cell = igtbl_getCellById(cellID);

var cellValue = cell.getValue();

 

Does anyone have any pointers

Parents
  • 470
    Offline posted

    Maybe your cellID variable is not being set properly? This is how I am doing it and it is working fine

    var grid = igtbl_getGridById(gridname);

    var cell = grid.Rows.getRow(0).getCell(0);

    var cellValue = parseFloat(cell.getValue());

     

Reply Children