Hybrid View

  1. #1
    Ext User
    Join Date
    Jun 2008
    Posts
    27
    Vote Rating
    0
    cqiao is on a distinguished road

      0  

    Default how to listen a TextField get or lost focus?

    how to listen a TextField get or lost focus?


    how to listen a TextField get or lost focus?
    i want to hide it, after it lost focus.

  2. #2
    Ext User
    Join Date
    Apr 2008
    Posts
    376
    Vote Rating
    0
    zaccret is on a distinguished road

      0  

    Default


    Code:
    field.addListener(Events.Focus, new Listener<FieldEvent>(){
       ...
    });
    Events.Blur for focus lose

  3. #3
    Ext User
    Join Date
    Jun 2008
    Posts
    27
    Vote Rating
    0
    cqiao is on a distinguished road

      0  

    Default


    Thank you!

  4. #4
    Sencha User
    Join Date
    Dec 2007
    Posts
    57
    Vote Rating
    1
    MickeyMiner is on a distinguished road

      0  

    Red face How to listen a FieldSet lost (or get) focus?

    How to listen a FieldSet lost (or get) focus?


    Hi,

    I am using ExtGWT 2.0.

    Why do Blur or Change evets not work on FieldSet or ContentPanel?
    Hide and Show events are normally fired.

    Code:
    final FieldSet fieldSet = new FieldSet();
    fieldSet.addListener(Events.Blur, new Listener<FieldSetEvent>() {
        public void handleEvent(FieldSetEvent event) {
            Info.display("fieldSet Blur was fired", "");
        }
    });
    Regards,

    mm

  5. #5

    Default TextField lost focus event

    TextField lost focus event


    Hi, I've the same problem

    this is my code
    Code:
    TextField<String> wName = new TextField<String>();
    ....
    wName.addListener(Events.Blur, new Listener<FieldSetEvent>() {
        public void handleEvent(FieldSetEvent event) {
            Info.display("fieldSet Blur was fired", "");
    }
    After compiling when I lose focus from wName widget, I don't see any message!!
    what's wrong?
    thank in advance!!

  6. #6
    Sencha User night-soul's Avatar
    Join Date
    Nov 2011
    Location
    Uruguay
    Posts
    2
    Vote Rating
    0
    night-soul is on a distinguished road

      0  

    Default


    Try this.

    User OnFocus, OnBlur event, to me this works ant the others not, in my case i have used on a button.