Jump to content


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

sorting disable sorting columns grid crud

  • Please log in to reply
5 replies to this topic

#1 waqar

waqar

    Member

  • Members
  • PipPip
  • 10 posts

Posted 11 September 2012 - 12:14 PM

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

Thanks

#2 victor

victor

    grocery CRUD Hero

  • Advanced Member
  • PipPipPip
  • 967 posts
  • LocationMinsk

Posted 11 September 2012 - 05:29 PM

Hi!
http://www.grocerycr...s/unset_columns
http://www.grocerycr...nset_add_fields
http://www.grocerycr...set_edit_fields
It is you want?

#3 waqar

waqar

    Member

  • Members
  • PipPip
  • 10 posts

Posted 11 September 2012 - 05: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.

#4 victor

victor

    grocery CRUD Hero

  • Advanced Member
  • PipPipPip
  • 967 posts
  • LocationMinsk

Posted 11 September 2012 - 05:52 PM

I understand you

#5 waqar

waqar

    Member

  • Members
  • PipPip
  • 10 posts

Posted 12 September 2012 - 06:31 AM

Anyone with any ideas on this? :)

#6 saulimus

saulimus

    Advanced Member

  • Members
  • PipPipPip
  • 40 posts

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...





Also tagged with one or more of these keywords: sorting, disable sorting, columns, grid, crud

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users