Hello,
I am using Power 2.4 (01-05-2011).
If I have a listgrid with a column with type="imageFile" specified in its .ds.xml file, and I have the gridinitialization like below, i cannot upload an image through it.
In edit mode, it shows the 'browse...' formitem, but when I click 'browse' it leaves edit mode. Is this a bug?
I really do not want to have a 'master-detail' paradigm on this part of my app, so I prefer to just be able to upload using the upload item in the listgrid.
My initializing code for the listgrid:
I am using Power 2.4 (01-05-2011).
If I have a listgrid with a column with type="imageFile" specified in its .ds.xml file, and I have the gridinitialization like below, i cannot upload an image through it.
In edit mode, it shows the 'browse...' formitem, but when I click 'browse' it leaves edit mode. Is this a bug?
I really do not want to have a 'master-detail' paradigm on this part of my app, so I prefer to just be able to upload using the upload item in the listgrid.
My initializing code for the listgrid:
Code:
protected void init() { ListGrid grid = new ListGrid(); grid.setWidth100(); grid.setHeight100(); grid.setAlternateRecordStyles(true); grid.setCellHeight(22); grid.setDataSource(dataSource); grid.setAutoFetchData(false); grid.setCanEdit(false); grid.setModalEditing(true); grid.setShowFilterEditor(true); grid.setDoubleClickDelay(30); grid.setEditEvent(ListGridEditEvent.DOUBLECLICK); grid.setListEndEditAction(RowEndEditAction.DONE); grid.setCanRemoveRecords(true); grid.setAutoSaveEdits(true); grid.setShowRecordComponents(true); grid.setShowRecordComponentsByCell(true); grid.setRecordComponentHeight(22); //... }
Comment