Hi,
We've been trying to achieve similar functionality on ListGrid that already exists for FormItems: com.smartgwt.client.widgets.form.validator.RequiredIfValidator;
We want to set a ListGridField to required conditionally.
Ie. we got ListGridFields A = "Need more coffee? If not, why?" and B for answering the question. B is not required until A has a certain value.
We tried using the same validator for the ListGridField and got the validator to fire, but it does not change the field's required attribute, no matter what gets returned from the RequiredIfFunction's execute() method
Is there a neat way to achieve what we're trying to do?
We are using SmartGWT Pro, nightly build 20110630.
We've been trying to achieve similar functionality on ListGrid that already exists for FormItems: com.smartgwt.client.widgets.form.validator.RequiredIfValidator;
We want to set a ListGridField to required conditionally.
Ie. we got ListGridFields A = "Need more coffee? If not, why?" and B for answering the question. B is not required until A has a certain value.
We tried using the same validator for the ListGridField and got the validator to fire, but it does not change the field's required attribute, no matter what gets returned from the RequiredIfFunction's execute() method
Is there a neat way to achieve what we're trying to do?
We are using SmartGWT Pro, nightly build 20110630.
Comment