deas / contentreich-alfresco-datalists

Datalist Extensions for Alfresco Share
16 stars 26 forks source link

Datalists are not updated properly #46

Open ghost opened 8 years ago

ghost commented 8 years ago

Alfresco Community 5.0.d It seems the current list ist not updated properly. New Items to a datalist are not added to the list immediately, only after refresh. Also when changing from one list to another, first an empty list is shown and after a while the entries appear or in some cases the list even stays empty.

billerby commented 8 years ago

The dataTable.addRow adds the new row to the end of the recordset, which means that if there are more pages than one in the resultset the adding wont show. One thing we have done for some customers is to subclass the onDataItemCreated-method and add the row at the top instead, this way the user gets better feedback.

this.widgets.dataTable.addRow(item, 0);

ghost commented 8 years ago

This is not the problem here. It happens in new lists with only one page.

tatatanja commented 8 years ago

I have the same problem. The first item is added successfully and the list is updated. The second, third... item doesn't appear in the list. After refreshing the page the items appears.