View Full Version : Bind Record to CheckboxGroup

2 Jun 2011, 1:55 AM
Hi, I was working on a form where I'm setting the values from a Record's data.

// Sample data
var rec = {
hasWings: true
,hasFeet: true
,hasEars: false

Is it possible to bind these boolean values to a CheckboxGroup?

2 Jun 2011, 9:00 AM
As long as the name attribute of each checkbox matches a field name in the Record, you should get the desired effect.

Note that your code sample is not building a record correctly (which may also be a part of your problem).

Visit the API doc for the Ext.data.Record (http://dev.sencha.com/deploy/ext-3.3.1/docs/?class=Ext.data.Record) class and expand the create(Array o) branch for a code sample.