GWT 2.4: DataGrid with custom CellTableBuilder

2011-08-15 Thread Tolwi
Loking at http://showcase2.jlabanca-testing.appspot.com/#!CwCustomDataGrid - 
CellTableBuilder is greate feature, but can anyone suggest me how to make 
friend fields aditable?? 
There is no problem to render child row the same way as parent row: 
just utility.renderCell(td, utility.createContext(2), dataGrid.getColumn(2), 
rowValue);
insted of
  if (isFriend) {
td.text(rowValue.getFirstName());
  } else {
utility.renderCell(td, utility.createContext(2), 
dataGrid.getColumn(2), rowValue);
  }
But in this case I have a problem with field updater - update(..) is always 
called with parent object as agrument.

So how to determine the actual row object??

-- 
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/-/ylCVMUW16tIJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: when to use AsyncDataProvider instead of CellTable.setRowData ?

2011-01-26 Thread Tolwi
I'm using AsyncDataProvider when I need *async* page loading (for a huge 
amount of data) and ListDataProvider for small amount of data when I can 
load all the data at once.

-- 
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-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Highlight some rows in CellTable

2011-01-24 Thread Tolwi
cellTable.setRowStyles(..)

-- 
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-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Loading state of CellTable

2011-01-21 Thread Tolwi
or just cellTable.setRowCount(0);

-- 
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-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.