1. #1
    Touch Premium Member
    Join Date
    Sep 2011
    Location
    Tamworth, NSW, Australia
    Posts
    386
    Vote Rating
    7
    marc.fearby is on a distinguished road

      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
    8,883
    Vote Rating
    102
    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 User lorezyra's Avatar
    Join Date
    Dec 2007
    Location
    Japan -- 日本
    Posts
    531
    Vote Rating
    3
    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
    386
    Vote Rating
    7
    marc.fearby is on a distinguished road

      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

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar