gwt - bugs about using DataGrid wrapped by StackLayoutPanel -


i tried use datagrid , put in stacklayoutpanel.at time when provide data listdataprovider, celltable not visible in browser because it's on non active tab (although it's visible in dom tree). after switching tab containing celltable there no data in it. if tab active @ time of data provisioning table filled correctly. since have made column sortable, if clicked sorting, data displayed correctly. want data displayed automatically when click other inative tab. not problem if switch use celltable.

i knew bug in gwt , fixed in gwt 2.5 rc. boss not want me use gwt2.5rc yet. have workaround fix this. knew said datagrid.redraw() sort of fix it. tired it, display weird. example, have 10 rows in datagrid, after selecting 2nd tab, redraw() called, data automatically displayed, there 10px of block displaying data , scroll bar. have scroll down see other rows. there lots of space in bottom of tab not being used. tell me how fix this? did use wrong way fix it? there else can fix problem. give me tips please.

thanks

best regards

i have been struggled thing 3 days. papick g. taboada , thomas broyer. guys' ideas helpful. bascially either of solution not solve problem. after combined both solutions, dang~ worked!!.

so. completed solution that, add selection handler on non-active tab, when event called, used datagrid.onresize() , stacklayoutpanel.forcelayout(). can solve problem. have tried replacing datagrid.onresize() datagrid.redraw(). works well.

i hope can other people have same problem before using gwt 2.5rc


Comments

Popular posts from this blog

javascript - backbone.js Collection.add() doesn't `construct` (`initialize`) an object -

php - Get uncommon values from two or more arrays -

Adding duplicate array rows in Php -