server side error messages in listGrid

Hello,
we are using version7.

i m using RPCResponse for sending my data from backend to the JSP for a listGrid.
I am handling server side validation, suppose if there is an error in a particular cell for any row, i want to highlight that particular cell in the ListGrid.

  1. How to achieve this?
  2. Can i get that parcticular row number and column number in the JSP(ListGrid). So that i can use it to change the base style of that cell?
  3. How to store that row number and column number in the response object and how to retreive the same in JSP.

we are using getCellStyle, to change the basestyle for a particular cell as shown. Now we need to know how to use the same function for any row?

getCellStyle: function (record, rowNum, colNum) {			  if ((this.getFieldName(colNum) == "errorMsgColumn") && (rowNum == ????)){
	    return "myHighGridCell";
      }
      else {
                return this.baseStyle; 
      }
}

You seem to be reinventing validation error handling when there is already a builtin mechanism. Use the server side APIs on the DSResponse object to send validation errors back to the grid.

hi isomorphic,
thanks for reply…
problem is i am using RPCResponse and not DSResponse…
can u please provide some hiperlink for server Side APIs…
thanks in advance

If you’ve somehow not read docs on the server at all, start with the QuickStart Guide and read all of it and all referenced materials from the SmartClient Reference. Then, read the ListGrid editing overview (pervasively linked from various ListGrid docs)