I am working on creating dynamic UI, just wanted to know if GXT provides or if there is a way to have dynamic event handlers.
For eg., on the screen there is a form with some fields and just below the form there is a grid which makes an rpc call and displays the data from the db table which is being populated by the form.
Now if there user fills and submits the form, the grid should know that it has to fetch the data again so as to display the new record.
This can been easily done, by making an rpc call just after submitting the form, but as the UI is being created dynamically the widgets are not aware of each other.
So I want to have a event, say "reloadCustomers" which will be fired by the form when done with submitting the data, and the grid to handle this event and reload itself.
Any ideas / suggestions on how to implement this or links will be helpful.