hi all,
i m implementing some server side validation for a ListGrid.
i want to create one error column in the grid and want to show one error message in that particular column for the corresponding row, if some error is present in the row(after fetching results form the dataBase).
if there is no error in the row, i want to show that error column as blank cell.
i m iterating my List of VO in the DAO class :
now i want to access that particular row in the jsp.
and want to highlight the border of that particluar cell and one toolTip on that particular cell.
In jsp i have 2 functions in the listGrid:
but here i am hardcoding the rowNum==4, i want to dynamically access this row number inside the grid.
one approach i have, but for that i want to access the values of DSResponse or RPCManager attribute inside the "cellHoverHTML" function.
how can we access that value inside this function??
i m implementing some server side validation for a ListGrid.
i want to create one error column in the grid and want to show one error message in that particular column for the corresponding row, if some error is present in the row(after fetching results form the dataBase).
if there is no error in the row, i want to show that error column as blank cell.
i m iterating my List of VO in the DAO class :
Code:
Iterator iterator = listMarketDVO.iterator();
while(iterator.hasNext())
{
MarketVO marketVO1 = (MarketVO) iterator.next();
if (marketVO1.getStrMarketId().compareTo("ATSNY15") == 1){
marketVO1.setErrorMsgColumn("Got Error");
}
}
and want to highlight the border of that particluar cell and one toolTip on that particular cell.
In jsp i have 2 functions in the listGrid:
Code:
getCellStyle: function (record, rowNum, colNum) {
if ((this.getFieldName(colNum) == "errorMsgColumn") && rowNum == 4){
return "myHighGridCell";
}
else {
return this.baseStyle;
}
},
cellHoverHTML: function (record, rowNum, colNum){
if ((this.getFieldName(colNum) == "errorMsgColumn") && rowNum == 4){
return "This is customized Error Message";
}
}
one approach i have, but for that i want to access the values of DSResponse or RPCManager attribute inside the "cellHoverHTML" function.
how can we access that value inside this function??
Comment