1. #1
    Sencha User
    Join Date
    Dec 2009
    Posts
    73
    Vote Rating
    1
    muselmanach is on a distinguished road

      0  

    Default Unanswered: GridPanel using FieldLabel

    Unanswered: GridPanel using FieldLabel


    I need a fieldLabel for my gridpanel.
    Using isFormField: true and fieldLabel : "grid" isn't working like descriped here:
    http://www.sencha.com/forum/showthre...Label-question

    any ideas?

    thx
    muselmanach

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    33,714
    Vote Rating
    438
    Answers
    3113
    mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of

      0  

    Default


    fieldLabel only works with an Ext.form.field.Field subclass. What you could do is have a label or component class that is rendered to the left of the grid.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    http://www.JSONPLint.com - Source to lint your JSONP!

    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    Dec 2009
    Posts
    73
    Vote Rating
    1
    muselmanach is on a distinguished road

      0  

    Default


    could u pls post an example-code for the label solution?

    thx

  4. #4
    Sencha User
    Join Date
    Dec 2009
    Posts
    73
    Vote Rating
    1
    muselmanach is on a distinguished road

      0  

    Default


    up

  5. #5
    Sencha User
    Join Date
    Jun 2008
    Posts
    104
    Vote Rating
    4
    jchau is on a distinguished road

      0  

    Default


    would a better way be using a FieldContainer to wrap the GridPanel? Or would it be more lightweight to use the Ext.form.Labelable mixin? The doc says the mixin should only be used internally.