-
26 Oct 2011 3:23 PM #1
How to get a checkcolumn in Designer?
How to get a checkcolumn in Designer?
Is there a way to tell a column (that is set to show a boolean field from a store) to be a checkcolumn? Thanks.
-
27 Oct 2011 11:19 AM #2
No, this is currently not possible.
Ext.ux.CheckColumn is a user extension that we distribute with the SDK but it is not part of the standard SDK. We will be adding support for 3rd party extensions in the future and this will be included in that.Aaron Conran
@aconran
Sencha Architect Development Team
-
28 Oct 2011 3:54 PM #3
Xtemplate
Xtemplate
Why not use the Xtemplate feature of Designer??
You could use Ext.grid.column.Template to accomplish the trick!
Just input this code into the tpl property for your column. Change the dataIndexName to whatever your field name is for the data.Code:<input type="checkbox" alt="text" value="on" {[(values.dataIndexName==1)? "checked":""]} />
FYI, this works great for "readOnly" type of grids... If you need to edit the checkbox or record its value, then you should use the ux...Perfection as a goal is a nice idea that can point one in a specific direction. However, since "perfection" is an ever changing (evolving?) and moving target, one must admit that perfection can never be obtained...
When in doubt, check the d4mn source code!
-
30 Oct 2011 8:03 PM #4
That template column sure does display like I want it to, and with values.fieldname (being a boolean) instead of dataIndexName==1, it even checks the value. Now all I need to do is add a listener and I'm set :-) Thanks.


Reply With Quote