1. #1
    Touch Premium Member
    Join Date
    Sep 2011
    Location
    Tamworth, NSW, Australia
    Posts
    426
    Vote Rating
    8
    marc.fearby will become famous soon enough

      0  

    Question 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.

  2. #2
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,064
    Vote Rating
    113
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      0  

    Default


    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

  3. #3
    Sencha Premium Member lorezyra's Avatar
    Join Date
    Dec 2007
    Location
    Japan -- 日本
    Posts
    574
    Vote Rating
    6
    lorezyra will become famous soon enough

      0  

    Default Xtemplate

    Xtemplate


    Why not use the Xtemplate feature of Designer??

    You could use Ext.grid.column.Template to accomplish the trick!
    Code:
    <input type="checkbox" alt="text" value="on" {[(values.dataIndexName==1)? "checked":""]} />
    Just input this code into the tpl property for your column. Change the dataIndexName to whatever your field name is for the data.


    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!

  4. #4
    Touch Premium Member
    Join Date
    Sep 2011
    Location
    Tamworth, NSW, Australia
    Posts
    426
    Vote Rating
    8
    marc.fearby will become famous soon enough

      0  

    Default


    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.

Thread Participants: 2