Re: reordering of column in celltable

2012-11-05 Thread Steve C
I tried this, and it works, with two issues: 1. you need to remove the existing instance of the column. Unlike regular DOM elements (and therefore Widgets), which can only be in one place at a time, the cells generate a rendered string, which will be a new snippet of HTML, which will be result

Re: reordering of column in celltable

2012-06-30 Thread tong123123
Oh, sorry, I overlook it. On Saturday, June 30, 2012 5:23:08 PM UTC+8, Thomas Broyer wrote: > > > > On Saturday, June 30, 2012 11:17:03 AM UTC+2, tong123123 wrote: >> >> If the celltable has something like >> addColumn(Column col, int insertIndex) >> > > insertColumn(int beforeIndex, Column >

Re: reordering of column in celltable

2012-06-30 Thread Thomas Broyer
On Saturday, June 30, 2012 11:17:03 AM UTC+2, tong123123 wrote: > > If the celltable has something like > addColumn(Column col, int insertIndex) > insertColumn(int beforeIndex, Column col)

Re: reordering of column in celltable

2012-06-30 Thread tong123123
If the celltable has something like addColumn(Column col, int insertIndex) then I know how to do the reordering, but without this, I really cannot think any method to control the ordering of columns in CellTable. I type the keyword "celltable gwt column reorder" in google and cannot found any i

Re: reordering of column in celltable

2012-06-29 Thread Thomas Broyer
On Friday, June 29, 2012 7:35:57 PM UTC+2, tong123123 wrote: > > I think it is common to allow user to change the column ordering in a > table, but no method to do it in GWT? > Have you seen a single Google product with reorderable columns? most of them don't even have sortable columns… No I'm

Re: reordering of column in celltable

2012-06-29 Thread tong123123
anyone has idea? in fact, for the first requirement, I see GXT can do it as following link http://www.sencha.com/examples/#ExamplePlace:basicgrid but GXT can do it but GWT cannot? I think it is common to allow user to change the column ordering in a table, but no method to do it in GWT? -- You

reordering of column in celltable

2012-06-28 Thread tong123123
current, the column order in CellTable is fixed in coding, that is, something like Celltable.addColumn(col1, "col1"); > Celltable.addColumn(col2, "col2"); > Celltable.addColumn(col3, "col3"); > .. > Celltable.addColumn(col10, "col10"); > 1) if user want to change this co