Blazorise icon indicating copy to clipboard operation
Blazorise copied to clipboard

Fixed row headers on Table and DataGrid

Open wartim opened this issue 4 years ago • 9 comments

I hope Table and DataGrid can add the function of fixing row headers and columns

wartim avatar May 10 '21 07:05 wartim

Can you explain what is fixing the row headers? Not be able to resize?

stsrki avatar May 10 '21 07:05 stsrki

That is, when the height of the table / DataGrid is limited, a scroll bar will appear in tbody (when the data cannot be displayed completely), and then the contents (table data) can be scrolled, but not the header.

Fixed columns are the same: if I limit the width of the table and the width of each column, then when there are too many columns, the horizontal scroll bar will be displayed. When I scroll the horizontal scroll bar to the right, the fixed columns will not scroll together

1 2 3

wartim avatar May 10 '21 08:05 wartim

I can use some CSS styles to control, but it's better to have built-in functions

wartim avatar May 10 '21 08:05 wartim

The fixed header is done a few days ago, https://github.com/stsrki/Blazorise/pull/2293

For columns, it is not a priority so for now it will need to wait.

stsrki avatar May 10 '21 08:05 stsrki

OK, these functions are often used in real projects, and table / DataGrid is a very common and important data presentation component, hoping to integrate more and more powerful practical functions

PS: I ran the chart streaming example in the document. The delay of real-time rendering is very high. I hope it can be improved. Dynamic generation of chart data and display are also common functions of various report pages

wartim avatar May 10 '21 08:05 wartim

@David-Moreira you have worked on the fixed header so maybe you can make the same for the fixed columns? v1.0?

stsrki avatar Oct 29 '21 20:10 stsrki

God! Do I love these features!!

David-Moreira avatar Oct 29 '21 21:10 David-Moreira

I don't know, do you? 😂

stsrki avatar Oct 30 '21 05:10 stsrki

😂...

David-Moreira avatar Oct 30 '21 08:10 David-Moreira

Would love to see this feature in the future. Looking foreward to it! Is there any workaround in the meantime?

PatTheLad avatar Jun 09 '23 08:06 PatTheLad

Is there any workaround in the meantime?

You will most likely need to adjust some CSS. Look at SO for reference https://stackoverflow.com/questions/1312236/how-do-i-create-an-html-table-with-a-fixed-frozen-left-column-and-a-scrollable-b

stsrki avatar Jun 09 '23 09:06 stsrki