CellTable display in DialogBox

105 views
Skip to first unread message

skalimer0

unread,
Jul 6, 2012, 6:19:25 AM7/6/12
to google-we...@googlegroups.com
Hello,

I want to center a DialogBox when the cellTable is loaded (the celltable is include in the DialogBox).

The LoadingStateChangeHandler is just before the screen display and the center() function of the DialogBox is useless.

I want to know if an Event exist just after the screen refresh of the cellTable tp solve my problem.

Thanks


Jens

unread,
Jul 6, 2012, 6:30:43 AM7/6/12
to google-we...@googlegroups.com
Have you already tried to wrap your dialog.center() call in a Scheduler.get().scheduleDeferred()?

-- J.

skalimer0

unread,
Jul 6, 2012, 6:43:45 AM7/6/12
to google-we...@googlegroups.com
I just want to find a "clean" method...

for me : scheduler it's not clean for cellTable loading...
that's work... OK... but... not clean...

It may be exist an event to say "hey... the cell table is refreshed on your browser !!"

skalimer0

unread,
Jul 6, 2012, 7:11:43 AM7/6/12
to google-we...@googlegroups.com
I note that : getVisibleItemCount() getVisibleItems() getVisibleItem() functions works only when the screen refresh is done...
an event may be exist...

skalimer0

unread,
Jul 6, 2012, 7:35:44 AM7/6/12
to google-we...@googlegroups.com
I Found !!!!

cellTable can emit ValueChangeEvent when data is display on the screen

i make that :

        cellTable.addHandler(new ValueChangeHandler<T>(){
            @Override
            public void onValueChange(ValueChangeEvent<T> event) {

                 // DO THE RIGHT THING !!
                myDialogBox.center()

            }}, ValueChangeEvent.getType());




Le vendredi 6 juillet 2012 10:19:25 UTC, skalimer0 a écrit :
Reply all
Reply to author
Forward
0 new messages