1. #1
    Sencha User
    Join Date
    Mar 2012
    Posts
    42
    Vote Rating
    0
    chenhailong119 is on a distinguished road

      0  

    Default Extjs grid checkbox column width is too large

    Extjs grid checkbox column width is too large


    Extjs grid checkbox column width is too large...

    How I can do make the checkbox column width fit....

  2. #2
    Sencha User
    Join Date
    Mar 2012
    Location
    Jakarta
    Posts
    30
    Vote Rating
    2
    arivwd is on a distinguished road

      0  

    Default


    Are you using "Ext.selection.CheckboxModel" or "xtype: checkcolumn"?

    If "checkcolumn", then you can set it with "width: 10" and dont put "flex".

  3. #3
    Sencha User
    Join Date
    Mar 2012
    Posts
    42
    Vote Rating
    0
    chenhailong119 is on a distinguished road

      0  

    Default


    Thank you for your reply .

    I use "Ext.selection.CheckboxModel",and the nowhere to set the width... What I can do for it ?

  4. #4
    Sencha User
    Join Date
    Mar 2012
    Posts
    42
    Vote Rating
    0
    chenhailong119 is on a distinguished road

      0  

    Default


    Thank you for your reply .

    I use "Ext.selection.CheckboxModel",and nowhere to set the width... What I can do for it ?

  5. #5
    Sencha User
    Join Date
    Mar 2012
    Location
    Jakarta
    Posts
    30
    Vote Rating
    2
    arivwd is on a distinguished road

      0  

    Default


    You can use....

    Code:
    headerWidth: 200

  6. #6
    Sencha User
    Join Date
    Mar 2012
    Posts
    42
    Vote Rating
    0
    chenhailong119 is on a distinguished road

      0  

    Default


    I am sorry for your suggest

    In "Docs" no have the property and It is not useful for the "Ext.selection.CheckboxModel"...

  7. #7
    Sencha User
    Join Date
    Mar 2012
    Location
    Jakarta
    Posts
    30
    Vote Rating
    2
    arivwd is on a distinguished road

      0  

    Default


    Well,
    this is an undocumented property that controls the column width.
    Have you try it yet?

  8. #8
    Sencha User
    Join Date
    Mar 2012
    Posts
    42
    Vote Rating
    0
    chenhailong119 is on a distinguished road

      0  

    Default


    It is not work because I use the "Ext Designer" to extend the grid component
    If it is not the standard property,I can not use it.
    Can you have another suggest?
    I can use the event to change the width of header but in docs I only see the header is container...If I change the width that have the "setWidth" method ,can I change the "Ext.selection.CheckboxModel" width ?

  9. #9
    Sencha User
    Join Date
    Mar 2012
    Location
    Jakarta
    Posts
    30
    Vote Rating
    2
    arivwd is on a distinguished road

      0  

    Default


    I'am sorry, i never play with Ext Designer (or Sencha Architect now).. but i think you have to write the code above manually somewhere in the "Code" view.

    After installing Sencha Architect 2, i think you can create "Custom Properties" manually in Design tab as shown below.

    SA.jpg
    Last edited by arivwd; 12 Jun 2012 at 12:23 AM. Reason: After Installing The Sencha Architect 2

  10. #10
    Sencha User
    Join Date
    Mar 2012
    Posts
    42
    Vote Rating
    0
    chenhailong119 is on a distinguished road

      0  

    Default


    Quote Originally Posted by arivwd View Post
    I'am sorry, i never play with Ext Designer (or Sencha Architect now).. but i think you have to write the code above manually somewhere in the "Code" view.

    After installing Sencha Architect 2, i think you can create "Custom Properties" manually in Design tab as shown below.

    Attachment 36140

    It is good for it .
    And My designer is old and lost .My god.
    Can you tell me the version of your designer?

Tags for this Thread