Hello,
I am using chrome browser and SmartClient Version: v11.0p_2017-02-11/PowerEdition Deployment (built 2017-02-11)
I am using ListGrid component. One of list grid field has editor type as select item. In select item there are two pick list field. I am setting display field and value field of select item properly.
When Grid row is in editable state then proper display value is displayed but when gird is not in editable state it is displaying value field of select item. I want display field should visible everytime.
Code:
ListGrid vendorMaterialGrid = new ListGrid();
ListGridField materialField = new ListGridField("materialCode");
vendorMaterialGrid.setEditorCustomizer(new ListGridEditorCustomizer() {
@Override
public FormItem getEditor(final ListGridEditorContext context) {
SelectItem materialselectItem = new SelectItem();
ListGridField materialField = new ListGridField("materialCode");
materialselectItem.setWidth(200);
materialField.setWidth(60);
ListGridField descriptionField = new ListGridField("description");
descriptionField.setWidth(140);
materialselectItem.setDisplayField("materialCode");
materialselectItem.setValueField("descripiton");
materialselectItem.setPickListFields(materialField, descriptionField);
return materialselectItem;
}
});
Please help me out.
Thanks
I am using chrome browser and SmartClient Version: v11.0p_2017-02-11/PowerEdition Deployment (built 2017-02-11)
I am using ListGrid component. One of list grid field has editor type as select item. In select item there are two pick list field. I am setting display field and value field of select item properly.
When Grid row is in editable state then proper display value is displayed but when gird is not in editable state it is displaying value field of select item. I want display field should visible everytime.
Code:
ListGrid vendorMaterialGrid = new ListGrid();
ListGridField materialField = new ListGridField("materialCode");
vendorMaterialGrid.setEditorCustomizer(new ListGridEditorCustomizer() {
@Override
public FormItem getEditor(final ListGridEditorContext context) {
SelectItem materialselectItem = new SelectItem();
ListGridField materialField = new ListGridField("materialCode");
materialselectItem.setWidth(200);
materialField.setWidth(60);
ListGridField descriptionField = new ListGridField("description");
descriptionField.setWidth(140);
materialselectItem.setDisplayField("materialCode");
materialselectItem.setValueField("descripiton");
materialselectItem.setPickListFields(materialField, descriptionField);
return materialselectItem;
}
});
Please help me out.
Thanks
Comment