bogdan / datagrid

Gem to create tables grids with sortable columns and filters
MIT License
1.02k stars 115 forks source link

Can't set column header and order options at the same time. #227

Closed pmichna closed 7 years ago

pmichna commented 7 years ago

I can't have header and order column options at the same time.

Examples:

  1. column(:first_name, header: 'foo', order: 'users.first_name') { first_name } Only order works, header is First_name.

  2. column(:first_name, header: 'foo') { first_name } Header is displayed correctly, i.e. foo.

bogdan commented 7 years ago

I can not reproduce that. Are you sure that your app catches on class changes when you refresh the page? Maybe there are special conditions inside your grid. Can you show me the whole grid source code?

Also First_name as a header is weird because the default header is First name.

bogdan commented 7 years ago

No way to reproduce - closing