O'Reilly logo

Ext JS 4 Web Application Development Cookbook by Stuart Ashworth, Andrew Duncan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Populating CheckboxGroups

CheckboxGroups are very similar to RadioGroups but allows a user to select as many options as they want. Populating these CheckBoxGroups is notoriously difficult because mapping a dataset to the group can be done in various ways and depends on the dataset's structure.

This recipe will demonstrate how to overcome these difficulties and various ways of populating a CheckboxGroup:

Populating CheckboxGroups

How to do it...

  1. We will start by creating a form containing a CheckboxGroup listing some technologies that will form the base of our examples. We will then add this group to a Form Panel:
    var checkboxGroup = new Ext.form.CheckboxGroup({ columns: 2, fieldLabel: ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required