Create GWT CellTable Dynamically -
refer to the earlier question : Create GWT CellTable Dynamically
for this dynamic celltable, I would like to do sorting based on a column dynamically.
How to do the comparator ?
My first SO question ! thanks in advance
Related
I have the following problem:
customer wants Excel like behaviour on a table. When double-clicking on the space between two column-headers, the column should be sized like the biggest text inside that column.
Question: Is there a build in GXT function to add a Handler to the space between two column headers? I havent found sth. like that, browsing the documentation of grid...
Additional Information: GXT: 3.0.1 GWT: 2.5.1
Thank you very much!
No, it doesn't seem GXT exposes any handlers for actions on the column separators. A possible solution would be to have a option in the column drop down. There is an aricle about that here: http://greatlogic.com/2014/06/02/autofit-column-width-in-a-gxt-grid/
I have a doubt. Is there a way where I can create a Yii model for a form wrapping a double entry table?
My issue is that the fields are dynamic so you can have 100 columns and 100 rows, so create fields manually is impossible.
Any ideas?
Your best bet is to use a CFormModel subclass
I want to use cell tree as a cell table column. because GWT does not have tree table. In my current project, I have to make feature like item and it's subitem in cell table. so it is not possible without tree table
If any body have idea of this then please help to make it possible.
GWT 2.5 (to be released in a month or so) will add a CellTableBuilder that will let you generate additional rows; handling events on them will allow you to show/hide "child rows", mimicking a tree table.
Alternately, and withou waiting for 2.5, you can have your cells in a CellTree render columns (use a CompositeCell for flexibility and reuse). AFAICT thus is how Google Groups shows the unread count and menu for your favorite groups.
I am trying build tree table with tree widget plus flextable only. With the help of both, I am able to create custom tree table widget.
http://examples.roughian.com/index.htm#Widgets~Tree
finally..I able to create custom tree table as requirement.
Is the GWT CellTable designed to only display records and update the existing ones.
Can one add and delete a record from a CellTable, any pointers to a stable solution.
Thanks
You can add and remove data rows by manipulating the model object backing the CellTable display.
ListDataProvider<OrderLineWeek> model = new ListDataProvider<OrderLineWeek>();
model.addDataDisplay(myCellTableInstance);
You can then access the list through model.getList(), but you must call model.refresh(), or table.setRowCount(model.getList().size()) if you have added or deleted any rows.
Hope this helps.
ListDataProvider.getList().remove(index);
DataGrid.redraw(); // to refresh
to add, create object then assign data to this object,
ListDataProvider.getList.Add(object);
DataGrid.redraw();
i use Flex Table to display the data .
now i need ti support that when the user click on the table header the table be sorted according to the column selected .
but i need the sorting not to be slow.
is flex table can support this property ....if yes how can i do it .... if not is there is another way to do it ..? and how can i do it ?
best regards,
Ahmed Shoeib
FlexTable is not the good widget to display data, since the 2.1 version you should consider using CellTable
Moreove, since the version 2.2, the CellTable widget supports columns sorting. See the documentation