Custom editor for ListGrid

Hi,

I’m using a ListGrid for a list of objects that are quite complex. The objects are bound to the grid by a data source. Each object consists of about 50 attributes where some of them depends on another. Therefore I would like to use a custom editor (a complex dialog with 6 tabs and about 50 fields) to give the user a comfortable interface for editing the data instead of the inplace editors.

Is there any example how to use such a custom editor?

I think you can do something like adding a RecordDoubleClickListener which opens the editor dialog. But how do I perform the update on the grids record after closing the editor with an “Ok”? And what do I have to do for getting the datasource bound to the grid automatically updated?

Thanks in advance,
Ole

There is viable solution

I’ve found how to deal with custom editors - all you need is to create form bound to the same datasource as grid, add custom cell double click handler that would enable new window with editing form. This handler SHOULD invoke form.editNewRecord(). Add save button with handler that MUST invoke form.saveData() and hide

Thanks. I think adding the datasource to a form will generate some kind of generic form. We need a very special form that we need to define by ourselves. But nevertheless your idea gave me the right idea of how to implement it.