| Author |
Message |
![[Post New]](/templates/default/images/icon_minipost_new.gif) 01/21/2009 20:33:34
|
pdoraiswamy
Joined: 01/21/2009 20:28:30
Messages: 2
Offline
|
Hi,
I am just starting to test the ECruiser Data table controls. I have a question on editing the cell values of the grid table. The examples point to hard-coded lists as datamodels. I am trying to pull data from a db table. How does cell editing work? Does the updates happen automatically or the update logic needs to be implemented using the events like cellEndEdit etc. Please provide your input.
Thanks
Ram
|
|
|
 |
![[Post New]](/templates/default/images/icon_minipost_new.gif) 01/22/2009 08:10:12
|
adina_mihai
Simplica Team
Joined: 04/01/2007 00:00:00
Messages: 189
Offline
|
Hi Ram,
There's no difference between using gridTable with hard-coded list data model, or with database, regarding editing. In both cases, the model gets automatically updated when users end editing.
If you want to have some fancy way of updating or calculate a column (like we have in our demo, when we calculate the Total), then you have to use events like onendedit.
|
|
|
 |
![[Post New]](/templates/default/images/icon_minipost_new.gif) 01/22/2009 10:25:12
|
pdoraiswamy
Joined: 01/21/2009 20:28:30
Messages: 2
Offline
|
Hi Adina,
Thanks for your response. I am able to pull data from the database using SQLDataModel. But, when i edit the grid cell, the changes are not comitted to the database table. So, when i refresh the page after editing, the new values dont show up. Am i missing any property in the mapping/binding?
Thanks
Ram
|
|
|
 |
![[Post New]](/templates/default/images/icon_minipost_new.gif) 01/23/2009 12:58:13
|
adina_mihai
Simplica Team
Joined: 04/01/2007 00:00:00
Messages: 189
Offline
|
Hi!
In your case, you should use "onendedit", and implement the commit stuff in backing bean.
|
|
|
 |
|
|