Wednesday, April 24, 2013

How to add/remove dynamic column to/from celltable.

Hi,

I am gwt celltable.

My columns are configurable through other module.
used AsyncDataProvider to update row data.


Is there any way in celltable to updateColumnData only? so that newly added data get inserted into celltable or to remove column from celltable.

Assume, 10 column in table.
User can configure celltable column

- user want to remove 2 selected column then server call is made and related recordList object along with columninfo (8 columns) is coming, but in this case old 10 columns  with data and 8 column without data is populated into celltable

Actual: 18 columns displaying in celltable, 10 column with data + 8 column without data
Expected: 8 column with record

Sample code is as follows

 asyncDataProvider.updateRowData(startRowIndexOfPage, result);
                   if ("CONFIGURE".equals(eventType)) {
                        cellTable.redraw();
                        createCellTableColumns(latestColumnList); 
                    }
 cellTable.redraw();

result : record list with record information
latestColumnList : List<ColumnVO> : Updated number of column with column information

I want to show only new data(column+record data) in celltable which comes from server

If you want more info then replay me

How to do this?




--
Best Regards,
Vaibhav 

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment