tlaukkan / vaadin-lazyquerycontainer

Lazy Query Container is a lazy loading container implementation for accessing data from business services.
http://vaadin.com/directory#addon/117
39 stars 73 forks source link

Add items to the end of a container\table #83

Closed MelleD closed 8 years ago

MelleD commented 8 years ago

Hey,

is there a possiblity to add items to the end of a container\table? In the LazyQueryView the item will always be added at index 0.

 @Override
    public int addItem() {
        addedItems.add(0,item);
        if (itemIdList instanceof NaturalNumberIdsList) {
            itemIdList = null;
        }
        return addedItems.indexOf(item);
    }

So if i add many new items to a table, it will begin to flicker. In this case it's better to add item at the end like the IndexedContainer do it.

tlaukkan commented 8 years ago

Hi, there is no support for adding items in the end at the moment. If you implement such feature please create a pull request.