简体   繁体   中英

Disable “click on header” sorting in GridX

Is there a way to disable click-on-header-sort in dojo's GridX ? I would like to still be able to sort it programmaticaly but user need to have that option blocked.

Sorting will happen when you used a module related to that like " gridx/modules/SingleSort " or " gridx/modules/NestedSort "

You can try un-registering if you have used such modules.

If you want to disable sorting on a specific column of the grid then you can use

grid.column(column_Number).setSortable(false);

By default "Sort" is set to true

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM