Skip to content

Question: TwinColumnGrid 3.1.0 does not work for String type?Β #202

@tonyz0212

Description

@tonyz0212

Describe the bug

When I was using version 2.7.0,
I was able to do (availableItems is a list of String):

TwinColGrid<String> select = new TwinColGrid<String>(availableItems)
              .addFilterableColumn(String::toString, itemsDescription, "filter", true)
              .withSizeFull()
              .withDragAndDropSupport()
              .selectRowOnClick();

I am trying to make changes to adapt to 3.1.0 following the sample code:

final TwinColGrid<Book> twinColGrid = new TwinColGrid<>("TwinColGrid no binding demo and drag and drop support", availableBooks)
	.addColumn(Book::getIsbn, "ISBN")
	.addColumn(Book::getTitle, "Title")
	.withLeftColumnCaption("Available books")
	.withRightColumnCaption("Added books")
	.withoutAddAllButton()
	.withSizeFull()
	.withDragAndDropSupport();
twinColGrid.setValue(selectedBooks);

I changed my code to:

 new TwinColGrid<String>(availableItems)
               .addFilterableColumn(String::toString)
              .withSizeFull()

but it says The method withSizeFull() is undefined for the type FilterableTwinColumn

Is it possible to use the TwinColumnGrid for String on version 3.1.0?

Expected behavior

No response

Minimal reproducible example

No response

Add-on Version

3.1.0

Vaadin Version

24.5.9

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Inbox (needs triage)

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions