I want column grouping inside a vuetify 3.1 table. In the below example Electronic Documents is main header for four different types of documents. Using plain html we can define 3 tr's and respective th with colspans inside. How to do it in vuetify 3.1 v-data-table-virtual?
Related
I try to right-align all numbers in table columns. Is there a functionality in JSF or Primefaces that automatically align numbers to the right? I want an automated and more compact solution than adding css to each column.
I am using flying saucer to print an HTML table where cells in first column can span a large number of rows (to multiple pages). The requriement is for the cell to repeat on each page it spans (like a <thead>).
The library supports CSS2.1 and some CSS3 (e.g. the Paged Media Module), but no JavaScript. And as far as I can see, there's nothing in the standards that can directly do this.
Is there any hack or something that can make this possible?
(I control the code that generates the HTML, but the number of rows on a page cannot be predicted.)
The requirement is to have a custom CSS, sortable columns, global search.
A few apprehensions related to UI-grid:
The layout of UI-grid is based on divs, while that of Smart table is
like that of a normal table.
Also, if the UI-grid CSS is not used,
then many divs are to be changed to table-row and table-cell.
In my case, the UI-grid extends beyond the width of parent container.
(There is no padding/margin getting exceeded). I resorted to hiding
overflow, but it is more of a hack.
Questions related to Smart Table:
Can we have a structure similar to columnDefs to define column
attributes?
Is it less powerful than UI-grid?
Does it run into issues?
Which of these 2 tables should be used?
Take a look at AngularJS TableView
I have a wide HTML table to display in MVC3/Razor and I need to put it in a scrollable container or some type of paging control.
The data columns will contain mo-yyyy data that is up to two years so 24 columns wide.
Is there a better way to do this than HTML <table>? Thanks.
I would specify scrolling in the site.css
.data_table
{
overflow-x: auto;
}
Controls do not exist in MVC. You need to work with partial views and template for displaying and editing data. You could write a partial view that would contain your data table. You could then write another partial view that would contain your paging feature.
To do this you will probably require two view models to support your partial views: one for data table and one for paging information. You could then base your views on these view models.
I need to produce a table similar to:
What we see is the left column containing the data point headers, and each column after contains the actual data.
I'd like to treat each column (other than the first one) as an optional column. The user can add or remove the columns based on funds they select. If they've selected only 1 fund, only the first 2 columns are visible, the rest of the spaces are blank. Each subsequent fund selection adds a new column to the table, up to a max of 5.
I'm wondering what is the best way to implement this? I'm thinking each column is an independent table of a fixed width that I can add to a container which can align them side by side. Will I have difficulty getting the 6 tables to line up side by side?
Is there a better way for me to achieve this result?
You could have invididual tables, or you could assign each column a class which would then allow you to add or remove all elements that have that class using Javascript.
For example:
<table>
<tr><td class="col1"></td><td class="col2"></td><td class="col3"></tr>
<tr><td class="col1"></td><td class="col2"></td><td class="col3"></tr>
</table>
You could then use Javascript to show/hide elements (via CSS) with the relevant class based on actions of the user. Depending on how big your table is, that could work.
Nice use of Comic Sans by the way!