Hi there,

 

Use the following:

 

ClientContext.setModelUpdateMode(tableModel,
UlcEventConstants.SYNCHRONOUS_MODE);

 

 

Best regards.

 

________________________________

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of nguyen duyhai
Sent: Thursday, March 13, 2008 8:10 AM
To: [email protected]
Subject: [ULC-developer] Action in ULCTable.

 

When I put ULCComboBox in ULCTable , and I have init action for
ULCComboBox cbxRole : 

Example : 
private ULCTable m_tblTable = null;
m_tblTable.getColumnModel().getColumn(TableModel.ROLE_COLUMN).setCellEdi
tor(
new ITableCellEditor() {
public IEditorComponent getTableCellEditorComponent(
ULCTable table, Object value, int row) { //set default return
getCbxRole(); }
});

public ULCComboBox getCbxRole() {
m_cbxRole = new ULCComboBox();

m_cbxRole.addActionListener(new IActionListener(){
public void actionPerform(event) { 

  //my action } 
  }
return m_cbxRole;
}

Result.
+ The action for comboBox m_cbxRole only process when I select new value
for comboBox cbxRole and move to another row in table. Do you know put
ULCComboBox in ULCTable and the action for combox process when I select
new value for comboBox and not need move to another row in table?. 
.
Thanks and regards,

Hai

 

Reply via email to