Validate cell depending on VOvalue object

Help
kindersam
2009-02-24
2012-12-13
  • kindersam
    kindersam
    2009-02-24

    In gridcontroller classss, it possible to override the
    public bollean validateCell(int row number, String attributeName, Object oldValue, object newValue) method in order to validate cell contents. But I would like to know if it is possible to validate cell content form values of the current VO object being edited???
    For instance
    validateCell return true if the checkedBoxColomn is checked at the current row????
    Is there a method looking like this
    public boolean (validateCell(String attributeName, VO ValueObjectImpl)???

     
    • mcarniel
      mcarniel
      2009-03-14

      validateCell method is invoked each time a cell in grid is changed.
      I'm not sure to correctly understand your need, but if you want to listen for the cell changed event, you have to use validateCell method; within it you can access to the whole value object instead of old/newvalue of the cell, using: gridcontrol.getVOListModel().getObjectForRow(row)