Hello Isomorphic,
I am working on a project and I use ListGrid. I want to have a UI button that selects all grid lines of ListGrid. For this, I created a new window and I added a Button (com.smartgwt.client.widgets.toolbar.ToolStripButton.ToolStripButton()). I overrided onClick() method like this :
Code works when filters are not applied. When I apply a filter and some list records are filtered, then only a subset of the remaining records are selected.
I would really appreciate it if someone could help!
Best Regards,
Leo
P.S : I use gwt 2.8.2
I am working on a project and I use ListGrid. I want to have a UI button that selects all grid lines of ListGrid. For this, I created a new window and I added a Button (com.smartgwt.client.widgets.toolbar.ToolStripButton.ToolStripButton()). I overrided onClick() method like this :
Code:
// select All button ToolStripButton selectButton = new ToolStripButton(); selectButton.setTooltip("Select All"); selectButton.setIcon(IconConstants.SELECT_ALL); selectButton.addClickHandler(new ClickHandler() { @Override public void onClick(ClickEvent event) { table.selectAllRecords(); } });
I would really appreciate it if someone could help!
Best Regards,
Leo
P.S : I use gwt 2.8.2
Comment