PDA

View Full Version : Web based data table (data grid) design pattern?


leonchen
Apr 25th, 2006, 01:12 AM
HI,

I am looking for a complete sample of data grid.

* User can select data from a table, and they can CRUD it.
* User can CRUD multiple data, and store in memroy first. After user click final "Save" buttons, all changes should complete in a single transaction.
* If unders some constraints, some data can't be updated into database, there will be some friendly error messages to info user which data is error.
* Data in the data grid should be real "paged", not get all thousands data into web to do pagination.

Could you suggest some best practices?
ex: Should I have a value object layer to record which data is updated, the position in the table? or I should put all these informat into domain class, so I can easier get which data is fail in the transaction?
How to desing a table model to store temporial data, to show temporial change, and to do real page?


Thanks for your advices!