Hi,
I have a grid with 2 ListgridFilelds.
For ex:
ListGridField a= new ListGridField("a");
a.setEditorType(suggestionBox);
ListGridField b= new ListGridField("b");
When ever the value in the a got changed, then I want to populate b with some value for ex:"test".
if the user changes a the I want to display test in b.
I tried with the following code
a.addEditorExitHandler(new EditorExitHandler() {
public void onEditorExit(EditorExitEvent event) {
final String t= (String)event.getNewValue();
b.setCellFormatter(new CellFormatter() {
public String format(Object value, ListGridRecord record,
int row, int column) {
return "test";
}
}
My problem here is when I save the record and open another record it still displays test in b filed even though it doesn't have data. Is there any way that I can solve this.
Please help me in solving this.
Thanks
I have a grid with 2 ListgridFilelds.
For ex:
ListGridField a= new ListGridField("a");
a.setEditorType(suggestionBox);
ListGridField b= new ListGridField("b");
When ever the value in the a got changed, then I want to populate b with some value for ex:"test".
if the user changes a the I want to display test in b.
I tried with the following code
a.addEditorExitHandler(new EditorExitHandler() {
public void onEditorExit(EditorExitEvent event) {
final String t= (String)event.getNewValue();
b.setCellFormatter(new CellFormatter() {
public String format(Object value, ListGridRecord record,
int row, int column) {
return "test";
}
}
My problem here is when I save the record and open another record it still displays test in b filed even though it doesn't have data. Is there any way that I can solve this.
Please help me in solving this.
Thanks