Thursday, January 29, 2015

Re: Implement select all in CellTable

Thanx alexandra, its working

On Tuesday, April 19, 2011 at 12:21:18 PM UTC+5:30, Alexandre Ardhuin wrote:
Hi,

You can use a "com.google.gwt.view.client.MultiSelectionModel" with your CellTable

MultiSelectionModel<T> msm = new MultiSelectionModel<T>();
cellTable.setSelectionModel(msm);
for (T item : cellTable.getVisibleItems()) {
  msm.setSelected(item, true);
}

Alexandre


2011/4/18 Subhrajyoti Moitra <subhra...@gmail.com>
Hello,

Can some one please point me to a "Select All" functionality in a CellTable?

The functionality i have to implement, is that some of the CellTable headers has a select box which when clicked will select all the rows of CellTable being displayed.
Please give some hints as to how to implement this. Example would be awesome!!

Thanks,
Subhro.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment