Skip to content
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

How can I completely disable/remove sorting? #46

Open
rohitpbhore opened this issue Aug 28, 2018 · 1 comment
Open

How can I completely disable/remove sorting? #46

rohitpbhore opened this issue Aug 28, 2018 · 1 comment
Labels

Comments

@rohitpbhore
Copy link

Basically, I don't want to my grid headers to be clickable. And that is the reason I want to disable sorting form the grid.

@MrShemek
Copy link

In one of my apps, I have achieved that. Let's assume that this is a column definition:

g.column name: 'Column name', attribute: 'column_name' do |record|
  record.column_name
end

If you change it to:

g.column name: 'Column name' do |record|
  record.column_name
end

The clickable header will disappear. I have not noticed any side effects of this approach.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants