So I am implementing sort of a data table in flutter. it shows data based on time in days in rows and some other variant in columns. so naturally, first row is name of the days, and then in first column are values of the other variant. What properties of GridView.count can I use to make first row and column stay fixed when scrolling the grid. so that you can always see the data variants in screen.
I have gone over all properties of GridView.count but I can't find anything.
PS: I don't want to change to something else Like GridView.builder..... because the code is too far gone with how it renders the dynamic data in the rest of rows and columns.
Please Use data table instead of Grid
https://api.flutter.dev/flutter/material/DataTable-class.html.
Related
I have a model xml data:
Model data
I have been using split-column-data: to display column dynamically as I have some data with multiple different column. The thing is the border between each rows is missing. <?split-column-data:Test?> <?TestValue?> This is how i display the Test column dynamically. below are my RTF template from word
RTF template in words
I keep getting this:
Row border is missing
And the ideal out would be: ideal output with row border missing
Sorry for my bad english, but I need help please. Thanks
If you have already tried all the standard boarder stuff in Word, you can insert a nested table for each field (table within a table). Change the parent cell to have 0 margins/padding. Keep the for-each/end-for-each in the parent table.
I have three columns inside a row. The contents of the columns are generated by a listbuilder getting data from a database. Right now each column scrolls individually but I need them to scroll as one. Is this even possible in flutter or should I have made a gridview instead of three separate columns?
See https://stackoverflow.com/a/54879937/6447123
It works using a NotificationListener<ScrollNotification> plus an independent ScrollController for each scrollable Widget that should be synchronized.
You can use TrackingScrollController too
I use ag-grid enterprise edition and I would to add total columns in pivot mode. It is very clear in document how to do so but not in server-side rendering. The idea is that the back-end calculate the total of values for each row and I want to show it in the grid.
I tried a workaround using custom row groups and adding new columns to columnDef to describe the total columns, but it's not showing in the grid, because the total is not a row group. I can't find in the API a method to add a column that is not a Value column or a Pivot column in the ag-grid in pivot mode.
I want to know is someone find a way to do it in this context.
Nevermind, I find how to do it. You just have to push the columns you want as total using gridColumnApi.setSecondaryColumns. It's important to be aware of the colId and field to match the key of your row data corresponding.
I am getting the previous table column value for the current search. Example: I am searching for a criteria which has four columns in it and it displays fine. When I search for another criteria which has got only 2 columns, it loads the data correctly but it shows some blank space for the other 2 columns(which does not have any data actually). Data grid has the empty space with it.
This is a known issue with some workarounds: https://github.com/gwtproject/gwt/issues/6710
i have an ExcelWriter xlsx template that is populated via a datatable. Everything works perfectly but one column in the datatable is too large for the cell. The column is actually varchar(max) populated from text box area in a web application so the column can have multiple sentences in it. I tried to setup the xlsx template to do word wrap - and that works (kinda), but the text is still only in one cell. Is there a way to split or wrap the column across multiple cells vertically?
Text wrap is Excel's way of dealing with this issue. The other options are to alter your data before passing it to Excel Template so that your cell value is actually multiple rows in your data source.
If neither of these options are possible, A less desirable way might be to do some formula trickery where you store your large cell value in one cell and break it up into other cells with formulas such as LEFT MID or RIGHT
See http://www.excel-easy.com/functions/text-functions.html for some examples