Hi,
I am using DataProcessor with grid,
I am displaying the grid with different column names and its types dynamically,
like I am displaying different Database tables in the grid based on selection criteria.
Here I would like to validate the column when onCellEdit with respect to the column type which I got dynamically from server side,
So is there a way to get the column data type dynamically and check the value respect to the type and alert an error message?
/Thanks
Raj
It technically possible, you can get column type as
grid.getColType(ind)
grid.attachEvent(“onEditCell”,function(stage,id,ind,value){
if (stage==2) {
var type = this.getColType(ind)
if (!some_check(value,type)) {
alert(“incorrect data”);
return false;
}
}
return true;
})