What is the best way to implement a tabulator table to an existing css grid?
Thus meaning, instead giving a widthGrow size to each column, defining a start/end column for each columns.
Any ideas?
Related
I have multiple Tabulator tables stacked vertically on a form, each providing a unique purpose. I would like to be able to assign a title to each Tabulator without the use of a leading div element. Manipulating column titles is straight-forward but I am unable to find anything within the Tabulator documentation which suggests a means of creating a table header to span the width of all columns. Is this possible?
You could abuse the column group feature:
http://tabulator.info/examples/4.7#column-groups
"By creating groups in the column definition array, you can create multi line headers with groups of columns."
I have a bunch of values that are part of categories. Now I want to show the sum of each category in my chart. How can I group rows values of the same category in my chart only?
Basically, you can't achieve aggregate result without some data manipulation.
There are two ways to go on that issue.
First ,create a distinct categories, then sum-up the values by category using SUMIF Excel function, create your chart. The draw back of this method that if more categories added you'll have to add them manually.
Second option, is to create a Pivot-table of your original data and only afterwards create pie chart.This option is more convenient, hence it is a scalable solution
Have a great day
I have a shapefile in Spotfire and in the tableview of it I have a column displaying DenseRank. For example, if limit data by expression from the full 100 rows in the table to just 30, the DenseRank does not change. How can I perform this task?
Thanks,
Chris
Tableview does not allow dynamic calculations, unless you have a Document Property in the expression, The calculated column expression executes whenever Document Property value chane (or Calculations refreshed), for your scenario I think instead of using filter create a property control with Fixed values (10,20,30...100) or Values from a column (the one you are using to filter data). and use Document Property linked to the Property Control in your Calculated Column Expression .....
I found a workaround to dynamically rank data based on filtering or marking. If you create a data function as simple as "tableout <- tablein" then you can pass the original filtered and/or marked table to a new table. From there, insert calculated column on the new table and it will recalculate each time.
I have tried to get the column values in repeat control from Categorized view in xPages,that time i got the column values are coming with single row,and the same row repeated
How to get the column values in "repeat control from categorized view"?
Thanks
I had a situation where I had to drill down from a much larger view and repeated the info back out with the following.
View is categorized in first column by what I'm drilling down by. I achieve this in the XPage/Custom Control by defining the view as a source in the data tab, then select "filter by category name", bind my repeater to that view data source, and compute the value I'm drilling down.
Then in my repeated table, each of my computed fields for each of the column entries read like:
rowData.getColumnValues()[1]
Adjust for your other columns by position with the array modifier after your getColumnValues method. This is not an elegant solution, but worked for my needs. Hope this helps if it's what you're looking for.
[Update]
It's worth noting that doing this can potentially create a memory handle for any DateTime objects which may be returned in the entirety of the getColumnValues method. If you're going to use this approach, I strongly recommend getting a handle on the column values separately, so you can perform a session.recycle(colVals); on them to prevent any memory creep.
[/Update]
I want each row of my table view to appear, as it's own independent block, a little like how the Twitter app has on the Discover section (they have the top 3 trending word as 3 blocks.
I am trying to recreate this and the route I am trying to go down is having my table as a grouped tableview but instead of treating each row as a row of one section, I will treat a row as a section, thus generating blocks, each block will have only 1 row.
It sounds like a hack, I'm sure it's not the way to be doing it, but can anyone lend some tips about this kind of setup ?
Also I am using NSFetchedResultsController and I need to specify I want my objects ordered by date, but the section be defined by a unique id which would allow me to generate a section per row. I am not getting any luck with my fetch request either, so I guess this is 2 questions.
Although if I am wrong with the first part, the second becomes irrelevant.
Thank you.
I would not do it this way. Looking at the Twitter app, I have no doubt that this is a grouped table view, and the block sections use the first row as the title and a second row with a bigger row height for the content.
You can adjust the sections and rows as needed in the table view datasource methods, based on what comes back from the NSFetchedResultsController. Only caveat is that you have to be careful when you use the index path to refer to the core data objects.
The design of the Twitter "blocks" suggest a grouped table view, in fact I did manage to achieve this with a plain table view I just needed to be careful with the borders and background colours behind the cells...