SIDEBAR
»
S
I
D
E
B
A
R
«
Checkbox in cell table/ data grid header
May 9th, 2012 by P.G.Taboada

Here is a simple column header that selects/ de-selects all rows in a table. When all rows are checked, the header becomes checked automatically. Clicking o the checkbox in the header causes either to select or de-select all rows.

I am using the selection model and the data list provider to do the selection magic.

May not work for everyone….

And here is my custom header:


3 Responses  
  • Lakota Lefler writes:
    September 10th, 201222:53at

    Thanks for the article, have you been working with GWT for a long time?

  • P.G.Taboada writes:
    September 12th, 201216:59at

    You are welcome!
    Yes, I have been using, training and promoting GWT here in Germany for a while now.

  • John writes:
    March 14th, 201411:53at

    Whats missing here, is the explanation of how to use the custom header with the DataGrid.

    I can’t seem to find a way to assign it to the DGrid upon construction or afterwards.

    Any advice on how to put it into use, with not completely overriding DataGrid (which is painful on GWT updates).

    Thanks


Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">

SIDEBAR
»
S
I
D
E
B
A
R
«
»  Substance:WordPress   »  Style:Ahren Ahimsa
Bitnami