Edit contents of grid in text input areas
Hi,
I am working on the early stages of a GPL project (http://avoir.uwc.ac.za/projects/ewage) and would like to use the Grid control in my pages.
I realise that the 'on-grid' editing functionality is not available yet so would like to try and implement the following:
--------------------
Display a grid with data in.
Editing existing rows:
When a row is selected, display the contents of the row in input boxes below the grid. The user is allowed to edit the text boxes and save the contents, at which point the grid is updated. The user should also be able to cancel an edit and the changes to the grid are not 'committed'.
Adding new rows:
The user clicks 'add new' button. The currently selected row on the grid (if any) is un-highlighted and the input boxes are cleared. The user fills in the input boxes and clicks save button. The new data is added to the grid. Alternatively the user clicks cancel and the text input boxes are cleared.
Deleting rows:
The user selects a row and clicks the delete button. The row is deleted.
------------------
Has anyone done this sort of thing?
I am new to these widgets and would really appreciate it if someone could share an example with me (I also try to hold down a 'normal' job so time is of the essence here ;-)
Regards
Justin
I am working on the early stages of a GPL project (http://avoir.uwc.ac.za/projects/ewage) and would like to use the Grid control in my pages.
I realise that the 'on-grid' editing functionality is not available yet so would like to try and implement the following:
--------------------
Display a grid with data in.
Editing existing rows:
When a row is selected, display the contents of the row in input boxes below the grid. The user is allowed to edit the text boxes and save the contents, at which point the grid is updated. The user should also be able to cancel an edit and the changes to the grid are not 'committed'.
Adding new rows:
The user clicks 'add new' button. The currently selected row on the grid (if any) is un-highlighted and the input boxes are cleared. The user fills in the input boxes and clicks save button. The new data is added to the grid. Alternatively the user clicks cancel and the text input boxes are cleared.
Deleting rows:
The user selects a row and clicks the delete button. The row is deleted.
------------------
Has anyone done this sort of thing?
I am new to these widgets and would really appreciate it if someone could share an example with me (I also try to hold down a 'normal' job so time is of the essence here ;-)
Regards
Justin
Justin
February 2,