In a grid with 5 columns, I would like to have the possibility of sorting only for columns 2 and 4.
What is the correct demarch for implement this ?
– declare sortable to true for columns 2 and 4
– what else ?
In a grid with 5 columns, I would like to have the possibility of
Share
Default value of
sortableproperty is alreadytrue(see here). So you have to includeproperty in the definition of all columns in
colModelwith exception columns 2 and 4. If you have many columns, then it would be better to change defaults forcolModelitems:After that you should include
sortable: truein columns 2 and 4. In the way you can change any other defaults forcolModel. See the answer for more details.