|
Title: How to change datagrid column sortable set after datargid is parsered Post by: James on April 23, 2020, 08:31:39 PM How to change datagrid column sortable set after datargid is parsered.
I want to use a switchbutton to enable/disable some columns sortable Is there any way to do that . I know there is onBeforeSortColumn can return false to stop sort, but I don't want the column shows it can sort when not match the condition what I give. Title: Re: How to change datagrid column sortable set after datargid is parsered Post by: jarry on April 26, 2020, 03:17:00 AM This is the extended method to enable or disable the sortable on a column.
Code: (function($){Usage example: Code: $('#dg').datagrid('enableSortable', 'name'); |