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

Dynamically generate a CheckboxGroup from JSON

When creating real-world applications with Ext JS, it is often the case that we don't know how forms and UI elements are going to look at design time and so must be generated at runtime, based on data stored in a database.

In the previous chapter we looked at dynamically creating components from configurations loaded directly from the server. In this recipe, we will go into more detail by looking at how to create checkbox groups which are often required to be generated from lists of possible values stored in a database.

Imagine you are creating a social networking website and are creating an area where users can send a message to one or more of their friends by ticking a checkbox beside their name to ...

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