1. #1
    Sencha Premium Member
    Join Date
    Jan 2011
    Posts
    5
    Vote Rating
    0
    Answers
    1
    ambo is on a distinguished road

      0  

    Default Unanswered: ComboBox Masking

    Unanswered: ComboBox Masking


    Hi.

    I need help to set combo mask to be in element position.
    Currently, the mask is displayed at the FieldLabel not the combobox.

    combobox.png

    I used this code to set the mask. (csa_count is the comboxbox object)

    fLabel = new FieldLabel(csa_count, "csa_count");
    fLabel.setLabelWidth(labelWidth);
    p.add(fLabel,new VerticalLayoutData(1, -1));

    csa_count.mask("Loading...");

    Thanks.

  2. #2
    Ext GWT Premium Member icfantv's Avatar
    Join Date
    Sep 2011
    Location
    Superior, CO
    Posts
    411
    Vote Rating
    21
    Answers
    20
    icfantv will become famous soon enough icfantv will become famous soon enough

      0  

    Default


    First, I would strongly recommend against masking a specific element like you are doing. Masking is typically done a the window/dialog/grid level. I understand what you're trying to accomplish here but it looks a little ridiculous. Consider disabling your combo box and setting the text to "Loading..." instead.

    That said, since FieldLabel extends Component, it has the various mask methods and you can call on your FieldLabel instance instead of the widget. This probably won't yield more desirable behavior and if not, it may be because the layouts/margins are a bit horked and the way to test this would be to try and add a mask on your User Details "window."

    Finally, what version of GXT are you using? There is a bug in the mask method that wasn't fixed after GC and is NOT in the GPL version.

Thread Participants: 1

Tags for this Thread