On Sunday, December 2, 2012 1:29:22 AM UTC+1, Tony B wrote:
>
> So does this means they cannot be used interchangeably?  For instance, I 
> have a table.  When I define it as a "CellTable", it works fine.  But when 
> I simple change it to a DataGrid ( no other changes ), it does not work.


"Does not work" is not really helpful.
 

> Your comments suggest that I need to do some extra steps for DataGrid.  I 
> am just trying to confirm my understanding.  Thanks
>
>
>    - CellTable example:
>
> private AbstractCellTable<FacilityModel> facilityTable;
>> facilityTable = new CellTable<FacilityModel>();
>>
>
>    - DataGrid example:
>
> private AbstractCellTable<FacilityModel> facilityTable;
>> facilityTable = new DataGrid<FacilityModel>();
>>
>
> As stated above, the ONLY difference is the creation statement, which I 
> highlighted in yellow above.  Thanks.
>
> On Saturday, December 31, 2011 5:38:52 AM UTC-5, Thomas Broyer wrote:
>>
>> DataGrid and CellTable both display data in similar ways; but DataGrid 
>> has fixed column headers with scrollable content (have a look at the 
>> Showcase: 
>> http://gwt.google.com/samples/Showcase/Showcase.html#!CwCellTable vs. 
>> http://gwt.google.com/samples/Showcase/Showcase.html#!CwDataGrid )
>> Note that DataGrid comes with a few constraints: it's a RequiresResize so 
>> it must be put inside a ProvidesResize widget or be explicitly sized, and 
>> it has fixed-width columns.
>>
>
So, which is the parent widget of facilityTable?
To read more about RequiresResize/ProvidesResize, see 
https://developers.google.com/web-toolkit/doc/latest/DevGuideUiPanels#Resize
 

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/QNKXcgvQ6U4J.
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/google-web-toolkit?hl=en.

Reply via email to