Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    How to check when the user navigates from one tab to another in smartGWT

    Hi,
    I have 2 tabs. one tab has edited listgrid. I want to display some message when the user changes something and navigating away without saving the data. How can I check that the user is naving away from page. Pkease let me know how can I solve it.

    Thanks

    #2
    addTabSelectedHandler() or addTabDeselectedHandler() if those tabs are part of the same tabset.

    Comment


      #3
      Thanks very much for your reply. They are not part of same tab. Somehow I want to check whether the grid is loosing focus. Please let me know How can I do it.


      Thanks

      Comment


        #4
        Well there are things like FocusChangedHandler() and BlurHandler() but it seems like what are looking for is really when the user does something that makes the grid no longer visible correct?

        Comment


          #5
          Thanks for your reply svjard. Yes. When the user chages something and get his mouse out of the grid the I want to display some message..I tried FocusChangedHandler()..but it doesn't seem working..I don't see BlurHandler() in the grid. Pelase let me know how can I fix it.

          Thanks

          Comment

          Working...
          X