Skip to content

Conversation

@iamejaaz
Copy link
Member

When sticky = true is passed to the columns, they will automatically stick to the left while scrolling.
image

Screenshot / GIF

Screen.Recording.2025-02-19.at.4.05.52.PM.mov

no-docs

@iamejaaz iamejaaz merged commit 82582a0 into frappe:master Feb 21, 2025
1 check passed
@github-actions
Copy link

🎉 This PR is included in version 1.18.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@ankush
Copy link
Member

ankush commented Feb 21, 2025

@iamejaaz any way to do this from UI? We don't want to limit this to just script/code.

It will be small addition, somewhere in column dropdown add option to pin that column.

@iamejaaz
Copy link
Member Author

@iamejaaz any way to do this from UI?

No, right now

It will be small addition, somewhere in column dropdown add option to pin that column.

Yeah, I was thinking the same thing—adding an option in the dropdown to fix the column. The issue, however, is that it’s currently not maintaining the state for this. If the page is reloaded, it would need to redo everything (like sorting, pinning of columns). To address this, it would first need to store the state somewhere (like local storage) or any another solution/suggestion?

image

@ankush
Copy link
Member

ankush commented Feb 21, 2025

Keeping it stateless is fine to begin with IMO, but if you can do both then sure, why not.

@ankush
Copy link
Member

ankush commented Feb 21, 2025

The problem with stateful config is there are many dynamic data tables in Framework. Even reports inside code don't have known column names.

@moizsami
Copy link

will this work with
ERPNext: v15.80.0 (version-15)
Frappe Framework: v15.83.0 (version-15)

as I am trying to add sticky: true, sticky:True, sticky: 1 in my script reports but its not being reflected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants