This example overrides the default grid edit dialog to create a customised edit window. To override the behaviour the sample uses the
toolbarElement method to get a reference to the toolbar button an then binds a new handler to the onclick event. The
onRowSelected event is used to update the window when a new record is selected.