⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

How do I disable Sorting for certain Columns of CRUD grid?



waqar

waqar
  • profile picture
  • Member

Posted 11 September 2012 - 12:14 PM

Does anyone know how I can disable some certain columns from the CRUD?

Thanks

victor

victor
  • profile picture
  • Member

Posted 11 September 2012 - 17:29 PM

Hi!
http://www.grocerycrud.com/documentation/options_functions/unset_columns
http://www.grocerycrud.com/documentation/options_functions/unset_add_fields
http://www.grocerycrud.com/documentation/options_functions/unset_edit_fields
It is you want?

waqar

waqar
  • profile picture
  • Member

Posted 11 September 2012 - 17:32 PM

Thanks Victor. I guess that's not what I want though. Unsetting Columns or Edit/Add fields will only disable/hide them completely from the Grid and Add/edit form.

I basically want to show the field on the Grid just like normal, except that when I click on the heading of that specific Column, it doesn't perform a sorting of Order By Ascending/Descending at all.

I hope I'm able to explain correctly. Please let me know.

victor

victor
  • profile picture
  • Member

Posted 11 September 2012 - 17:52 PM

I understand you

waqar

waqar
  • profile picture
  • Member

Posted 12 September 2012 - 06:31 AM

Anyone with any ideas on this? :)

saulimus

saulimus
  • profile picture
  • Member

Posted 12 September 2012 - 12:33 PM

No, there is easy way..
If you're using the datatables theme, you can do it with bSortable:
http://datatables.net/ref#bSortable
But it requires that you initialize datatables for each page separately... gets a bit more complicated.
Don't know about Flexigrid...