Hi, i never used checkBoxes inside grid....but if the checkbox has a
corresponding field
in the store you have to simply set as true the field inside the store (i
guess that is the first field).
Anyway if you need to selectAll you can wait all the elements are created
and select all with the
selectionmodel....the onRender is not called probably because you first
create the grid and after you update
on every "folder" checking the content of the grid filling it with the
files...
bye Patrizio

2010/1/11 Allan Zarsuela <[email protected]>

> why are you setting the function on the doOnRender??? I used this as a
> suggestion I have researched.  This works when I ran the sample in GWT-EXT
> demo for grid with checkbox column
> http://www.gwt-ext.com/demo/#checkboxSelectionGrid
> see below code
>
>         grid.doOnRender(new Function() { //added by alz 01-08-2010
>           public void execute() {
>           cbSelectionModel.selectAll();
>                 System.out.println("\n -->>You enter here doOnRender" );
>                }
>                });
>         //grid.doLayout();
>         panel.add(grid);
>         panel.add(button);
>
>         RootPanel.get().add(panel);
>     }
>
> //===============================================
>
> The scenario is for every category there is a definite set of products to
> choose from such
> as (example only)
>
> CategoryA -- productA1
>                     productA2
>                     productA3
>                     productA4
>                     ...
>
>  CategoryB -- productB1
>                     productB2
>                     productB3
>                     productB4
>                     ...
>
>  CategoryC -- productC1
>                     productC2
>                     productC3
>                     productC4
>                     ...
>
>
>
>  CategoryD -- productD1
>                     productD2
>                     productD3
>                     productD4
>                     ...
>
> The categories are placed in a tree as nodes.
>
> When a particular node is checked, the corresponding set of products is
> loaded in a grid and as default checked all.
> Then the user can change by manually clicking the checkboxes of every
> product or the select all check box in the colum header.
> So when the check event for the node  is triggerred the grids' rows'
> checkboxes should all be checked.
>
> I hope this is clear.
>
> -Lanz
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "GWT-Ext Developer Forum" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<gwt-ext%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/gwt-ext?hl=en.
>
>
--
You received this message because you are subscribed to the Google Groups "GWT-Ext Developer Forum" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to [email protected].
For more options, visit this group at http://groups.google.com/group/gwt-ext?hl=en.

Reply via email to