-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add freezed columns feature. #43
Comments
Ideally freezed columns would work as they do in this demo https://devexpress.github.io/devextreme-reactive/react/grid/demos/featured/tree-data/ Where it has a fixed initial width and allows the user to drag/adjust after it is rendered |
no need for now. |
This is useful feature to have , @mbrn when will it be landed ? |
I opened this issue on the first days of material-table. But i am only one developer of material-table and it is my hobby project. So i can not promise a date about issues. But as you know, i resolve issues, add features day by day :) |
@mbrn The intended behaviour is ability to freeze header, footer, columns on the right, columns on the left. This is nessessary when our table has about 30 columns. @mbrn Yup, i think most of serious projects started as a hobby project ;) |
You are right. I will add this feature asap. |
+1 to this request. |
+1 to this request |
1 similar comment
+1 to this request |
+1 :) |
@ALL |
+1 to this request |
+1 as well :) |
+1 |
For anyone who needs a quick fix (not sure how good of a solution this is for all browsers), this codepen was a helpful example for how to implement this through CSS: https://codepen.io/paulobrien/pen/LBrMxa Applying what the codepen did: const columns = [
{
title: 'Name',
field: 'fullname',
cellStyle: {
backgroundColor: '#039be5',
color: '#FFF',
position: 'sticky',
left: 0
},
headerStyle: {
backgroundColor: '#039be5',
position: 'sticky',
left: 0,
zIndex: 11
}
}
];
const Table = () => {
return(
<MaterialTable
columns={columns}
data={data}
title={`Demo Title`}
options={{
headerStyle: {
backgroundColor: '#01579b',
color: '#FFF',
position: 'sticky',
top: 0
}
}}
/>
);
} |
+1 to this request. |
2 similar comments
+1 to this request. |
+1 to this request. |
Hi, I researched about this feature to find a effective way. Found a solution: Drawing table twice and one will be absolute. But i have to make table-layout fixed when table has freezed columns. Please check datatables solution. And give me your feedback. |
@mbrn , what you had shown in the link is exactly the functionality folks are looking for. |
Yes, the solution you mentioned is perfect. An option prop like this will do -
|
This is done with 1.57.1 Please check the documentation: https://material-table.com/#/docs/features/fixed-columns |
@mbrn Why did you hard-code a |
Add freezed columns feature.
The text was updated successfully, but these errors were encountered: