Simplica

ProductsLearnPurchaseSupportDemoDownload
  [Search] Search   [Recent Topics] Recent Topics  
Grid Table Cell Editing
Forum Index -> DataTable
Author Message
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
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.
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
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.
 
Forum Index -> DataTable
Go to:   
Powered by JForum 2.1.7 © JForum Team
Home   |  News   |  Contact   |  About   |  License   |  Privacy   |  Documentation
Copyright © 2009 Simplica Corporation. All rights reserved.