Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Extjs grid panel with checkboxes

Tags:

gridview

extjs

How i can create ExtJs grid panel with checkboxes like here.

like image 617
edtsech Avatar asked Mar 12 '10 06:03

edtsech


1 Answers

In Ext 3.4, you'll want to use the Ext.grid.CheckColumn plugin as demonstrated in the EditorGrid sample included in the framework download.

In Ext 4+ there is a CheckColumn type built-in (xtype: 'checkcolumn').

Here's an example of what the column config looks like for a checkbox column in version 4+:

  xtype: 'checkcolumn',   header: 'Active?',   dataIndex: 'active', // model property to bind to   width: 60,   editor: {     xtype: 'checkbox',     cls: 'x-grid-checkheader-editor'   } 
like image 117
Brian Moeskau Avatar answered Sep 29 '22 17:09

Brian Moeskau