Datatable Checkbox

UI Components for JSF
Post Reply
anjan.datta
Posts: 3
Joined: 28 Jan 2010, 13:19

28 Jan 2010, 13:34

Hello cagatay

We are using the latest version of Primefaces and have successfully implementd "datatable with multiple selection checkboxes". However, we would like to know whether there is any means by which we can introduce a "checkbox" as a column header [against the column which have the checkboxes'] by which we would be able to check/uncheck all the table records.

Thanks in advance.

-Anjan

anjan.datta
Posts: 3
Joined: 28 Jan 2010, 13:19

01 Feb 2010, 15:55

Hello Group

Is there any one in the group who have any idea on this?
Thanks in advance!

- Anjan

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

01 Feb 2010, 16:09

Hi Anjan,

Please see number 3 in forum guidelines; http://primefaces.prime.com.tr/forum/vi ... f=3&t=1194

Selecting all checkboxes is possible with client side api, you need to get all records at client side, set pf_column_select key to true.

I think it sounds good for PrimeFaces to provide a built-in solution to this as it's a common requirement.

In future we can add a new attribute to p:column for this like;

Code: Select all

<p:column selectionMode="multiple" selectAllToggler="true" />
selectAllToggler will add a checkbox to column header to select/unselect all rows.

anjan.datta
Posts: 3
Joined: 28 Jan 2010, 13:19

16 Feb 2010, 07:06

Thanks cagatay.
It would be really nice to have this feature in primefaces.
May I know, when can we expect this?
-Regards, Anjan

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

16 Feb 2010, 13:32

Hi Anjan,

I agree that it looks like a really nice feature, as there are some other issues/features with higher priorioty we are working on at the moment, I can't say an exact timeframe for this.

You may consider case support option, with that we could implement this in 1-2 days.

http://primefaces.org/support.html

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 32 guests