Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

It is possible to relate parent and child in TreeGrid both

$
0
0
Is possible to relate parent and child in TreeGrid both from one edition window.

Our code for parent is:

Code:

@Override
public void onSave(SaveEvent event) {
  Record act = event.getAct();
  if (act.getAttributeAsLong(ActAtt.id()) != null) {
    actDataSource.updateData(act);
  } else {   
    actDataSource.addData(act);
  } 
  ...

  getActTreeGrid().invalidateCache();
  hideForm();
}

But, when try to add childs same time that parent, dont work!... Any idea?

Viewing all articles
Browse latest Browse all 4756

Trending Articles