cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Help us improve the PTC Community by taking this short Community Survey! X

How to add checkbox "select rows" in customized table.

FelipeOliveira
2-Explorer

How to add checkbox "select rows" in customized table.

Friends,

I need add checkbox "select rows" in my customized table:

checkbox.jpg

The class that I'm moving is as follows:

@Override

public ComponentConfig buildComponentConfig(ComponentParams componentParams)

throws WTException {

ComponentConfigFactory factory = getComponentConfigFactory();

TableConfig table = factory.newTableConfig();

table.setLabel("Lista dos Fornecedores");

table.setView("/../../netmarkets/jsp/t3827/tableFornecedor.jsp");

table.addComponent(factory.newColumnConfig("number", true));

table.addComponent(factory.newColumnConfig("name", true));

table.setMenubarName ("forntablemenubar");

return table;

Can you help me?

Felipe Oliveira.

ACCEPTED SOLUTION

Accepted Solutions

table.setSelectable(true);

View solution in original post

2 REPLIES 2

table.setSelectable(true);

Thank you Vasiliy,

Besides this, I also added the counter:


table.setShowCount(true);

It was perfect .

Felipe.

Announcements


Top Tags