I’m stuck with the behaviour of checkboxes in ExtJs.
I have a grid which displays data of certain services. A service can be refundable, which is indicated by a checkbox. There are add and update windows for services, callable from the grid. Basically the standard setup as found in other components.
For the add service window the checkbox works well. When the checkbox is checked and the data is written to the database, the database shows a "Y" indicating that the service is refundable.
However, when I select a refundable service from the grid and choose "Update" from the menu, all data is correctly displayed except for the checkbox, which is not checked (it should be as the service is refundable). Using the Chrome debugger I can see that all data is correctly transported to the form but the checkbox doesn’t seem to pick that up and adjust its setting accordingly. The definition for the checkbox is:
xtype: 'checkbox'
,fieldLabel: _('services.refundable')
,boxLabel: ''
,name: 'refundable'
I tried experimenting with the "inputValue" config property (inputValue: ’Y’) but that doesn’t seem to make any difference.
Am I missing a subtlety of the checkbox?
Thanks.