Example: -
While inserting a row, i want to set default value ‘10’ into combo.
that means i want to select option ‘10’ in a combo.
let the combo contains ‘10’, ‘20’, ‘30’ as a options.
gridObj.setColTypes(“txt,combo”);
gridObj.addRow(rowId, [‘hi’, ‘10’]);
But if the default value is ‘40’.
i don’t want to select ‘40’ in a combo.
because ‘40’ is not there in the options.
That means i want to check the default value ‘40’ is present in the combo or not before adding a new row.
my issue is that, i want to check a value is present in a combo or not.
if value is present then only i will set default value to that combo field
other wise i will not set the default value.
example:
let column ‘A’ is a combo type.
combo’s option are
1
2
3
i want to check option 2 is present in the combo's option or not.