How to create costum column widget in a CellTable - gwt

I want to create a celltable which column can have costumn widgets like rating.
After researches, i find that i have to create a class that extends AbstractCell, But it isn't very clear.
Can somebody help me, or is there any tutorial for that?

Related

Add columns and rows dynamically during runtime

There is no way to add columns and rows dynamically. When i tap on dataColumn need to add there subData to the DataColumn dynamically but can't find solution using syncfusion flutter datagrid. more information in attachment.if anyone has Solution please inform me.
here is the demo of what i need to implement :-
attachment
flutter_expandable_table ,syncfusion_flutter_datagrid this packages i have tried.
thank you all in advance.

How can I make a sap.m.Table sortable by drag and drop?

I would like to make my sap.m.Table manually sortable, so I can sort the rows of my table by drag and drop. I have tried using the jQueryUI sortable() method (it works on lists!), but if I use it on the table it makes the whole table draggable and if I use it on a ColumnListItem I can sort the content of the ColumnListItem, but not the ColumnListItems listed in the table. Does anybody have an idea what else I could try? Or maybe even have a solution to my problem?
I am thankful for all the help I can get!
Your problem is that you only want to make the table rows (<tr>) draggable. Therefore you need to pass the parent element to jQuery.sortable. Try something like this in your controller:
this.getView().$().find(".sapMList.myClass tbody").sortable();
Whereas myClass is a style class you added to your control (so that only THIS table instance will be affected).

is anybody have idea in gwt celltree as a celltable column??? Because GWT does not have tree table

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.

Sort FlexTable Inquiry

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

how to relate a flextable row with a database row in gwt

i'm creating a simple project to try gwt, but i'm a real noob :)
i've a table in my db, each row in this table has a unique id.
i want my application to read this table and display it's contents in a flextable, omitting the column containing the unique id in the db, 'cause the user is not interested in that id.
after that, i want the user to click on a row of the flextable and get a detailed view... but i need my unique id to get the detailed data about that row in my db!
i'm able to determine in which cell of the flextable the user clicked, so i created a simple widget with a string property and an int property, and i add this widget to the flextable setting the string property to the text from the db i want to display in the flextable and the int property with the db id value... when the user clicks, i get the widget contained in the cell and i can get my id back... but it looks like a very complex solution.
Creating a custom widget is the way to go as soon as your requirements exceed the functionality of the standard widgets provided by GWT.
Note: you may want to reconsider and use Grid instead of FlexTable. Grid seems better in your case since each row contains the same number of cells. See related topic about Grid and FlexTable comparison.