Re: SuggestBox in DataGrid?

2017-01-20 Thread Rogelio Flores
If I needed a SuggestBox-like widget in a cell, I would implement my own 
CellWidget. This would require that you basically re-implement the whole 
widget using the custom-cell approach. Not trivial like simply adding the 
already made SuggestBox, but it will perform nicely like cell-based widgets 
do.

However, if your DataGrid doesn't have a large amount of rows (hard for me 
to imagine needing a very large DataGrid with a SuggestBox on each row), 
you might simply try using a Grid or a FlexTable, both of which will gladly 
take a SuggestBox in a "cell".

Cheers!

On Friday, January 20, 2017 at 8:26:46 AM UTC-7, Frank wrote:
>
> Maybe it is all possible but not easy.
> That is the main reason we developed in an inhouse grid. Not enough 
> capabilities for the datagrid, or to difficult to achieve certain things.
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: SuggestBox in DataGrid?

2017-01-20 Thread Frank
Maybe it is all possible but not easy.
That is the main reason we developed in an inhouse grid. Not enough 
capabilities for the datagrid, or to difficult to achieve certain things.

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: SuggestBox in DataGrid?

2017-01-20 Thread Rocco De Angelis
Hi Hal Maner,

the DataGrid in GWT doesn't allow you to add a widget into a cell.
You have to implement your own cell renderer. 
For performance reason you can only use the SafeHtmlBuilder that you get 
pass in the render method.
So you can try to add an widget into the cell after an interaction with in 
the onBrowserEvent method.
But you have to be very careful onAttach and onDetach must be called 
correctly if you attache an widget into the dom.


Am Freitag, 20. Januar 2017 13:10:56 UTC+1 schrieb H Maner:
>
> Hello everyone,
>
> Has anyone been able to successfully use a SuggestBox in a DataGrid?  If 
> so, how did you do it?
>
> GWT 2.6.1, soon upgrading to 2.8 (thank you!).
>
> Thank you,
>
> Hal Maner
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.