How to sort checkboxes in the editor form? (one to many join)
How to sort checkboxes in the editor form? (one to many join)
Hi,
I'm using the one to many join method as described in the examples and documentation. It works perfectly but I would like to sort the checkboxes that are presented in the editor form.
It seems that they are always sorted by alphabetical order.
I'm talking about the order on the update/add form. Not the data grid itself. In the data grid I can sort the options the way I like.
Basically, I'm using this to edit the user rights and I want the rights to be shown in a logical order not the alphabetical order.
Thanks for any help on this. I've been looking at the documentation and browsed through the forum without being able to find someone mentioning this.
Replies
Hi,
Thanks for picking up the priority support option!
Are you using the PHP or .NET libraries for Editor? If so, the Options
class has an
order` method](https://editor.datatables.net/manual/php/joins#Options-class) which can be used to tell it how to sort the data based on an SQL column (does your ordering information exist in the database?).Regards,
Allan