You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! I need to load dynamic data from database. How to do that ?
I want to reduce the text size of headers and table view.
Can you help me regarding this.
Hi @saravananraj21,
You can add the data to your TableDataAdapter and then trigger a new rendering by calling the notifyDataChanged() method. If you want to enable the user to trigger a refresh (pull to refresh) you could use the pro version. You can test the feature in the Example App in the section "Load Data".
For setting the text size I need to know which TableDataAdapter you are using. If you are using the SimpleTableDataAdapter and SimpleTableHeaderAdapter you can use the setTextSize() method.
Hi @ISchwarz23.
I have used SortableTableView and loaded the data using SimpleTableDataAdapter . Can you help me how to sort the table and any sample code for that!
To make the SortableTableView SortableTableView, you have to set a comparator for each column that should be sortable, by using the SortableTableView#setColumnComparator() method.
You can find the code of the example app here. But in this example I used domain objects as table data and not string arrays.
Hi @ISchwarz23
How to change the text size? I am using SimpleTableDataAdapter and tried to change the size using setTextsize() method but getting error! Please share a sample code.
this is notan TableView issue. The setTextSize() method returns void. This is why you get this "error". To resolve it, just change your code like this:
You can add the data to your TableDataAdapter and then trigger a new rendering by calling the notifyDataChanged() method.
To change the number of columns use the TableColumnModel (like TableColumnWeightModel) and set the number of columns you need using the setColumnCount( int ) method.
Hi @ISchwarz23
I have a json array of data to form the table.I need the data to be arranged in the table and the table must be sortable. How can I achieve this using SortableTableView?
Activity
[-]Load [/-][+]Load Dynamic Data[/+]ISchwarz23 commentedon Dec 18, 2018
Hi @saravananraj21,
You can add the data to your TableDataAdapter and then trigger a new rendering by calling the
notifyDataChanged()method. If you want to enable the user to trigger a refresh (pull to refresh) you could use the pro version. You can test the feature in the Example App in the section "Load Data".For setting the text size I need to know which TableDataAdapter you are using. If you are using the SimpleTableDataAdapter and SimpleTableHeaderAdapter you can use the setTextSize() method.
saravananraj21 commentedon Dec 19, 2018
Hi @ISchwarz23.
I have used
SortableTableViewand loaded the data usingSimpleTableDataAdapter. Can you help me how to sort the table and any sample code for that!ISchwarz23 commentedon Dec 19, 2018
To make the SortableTableView SortableTableView, you have to set a comparator for each column that should be sortable, by using the SortableTableView#setColumnComparator() method.
You can find the code of the example app here. But in this example I used domain objects as table data and not string arrays.
saravananraj21 commentedon Dec 19, 2018
In my case I don't know how many columns and rows of data will be there.I have to set everything dynamically.Is it possible to do that?
saravananraj21 commentedon Dec 19, 2018
Hi @ISchwarz23
How to change the text size? I am using
SimpleTableDataAdapterand tried to change the size using setTextsize() method but getting error! Please share a sample code.ISchwarz23 commentedon Dec 19, 2018
Hi @saravananraj21,
There is not much that can go wrong when setting the text size. Check the API here.
If the error remains, post the error here.
saravananraj21 commentedon Dec 27, 2018
Hi @ISchwarz23

I am getting error when calling the setTextsize().
Can you help me regarding this issue!
ISchwarz23 commentedon Dec 27, 2018
Hi,
this is notan TableView issue. The
setTextSize()method returns void. This is why you get this "error". To resolve it, just change your code like this:saravananraj21 commentedon Dec 27, 2018
Hi @ISchwarz23
Thanks! It worked!
Is there any solution for the above?
ISchwarz23 commentedon Dec 27, 2018
You can add the data to your TableDataAdapter and then trigger a new rendering by calling the notifyDataChanged() method.
To change the number of columns use the
TableColumnModel(likeTableColumnWeightModel) and set the number of columns you need using thesetColumnCount( int )method.saravananraj21 commentedon Dec 28, 2018
Hi @ISchwarz23
I have a json array of data to form the table.I need the data to be arranged in the table and the table must be sortable. How can I achieve this using SortableTableView?
ISchwarz23 commentedon Dec 28, 2018
Please read the section about showing custom data and showing sortable data.