Grid : Prevent one column from moving


I want to prevent only two columns in the grid from moving. User should not be able to change their position,

while they all other columns should be movable.

How do I achieve this ?

I tried returning false from ‘onBeforeCMove’ after checking the col id, but that messes up

the grid. Data seem to move around, but header remains at position.



Actually the usage of onBeforeCMove is a correct use-case and must not produce any side effects.
Working sample sent by email.

The alternative solution is use second parameter of enableColumnMove
which is optional list of true|false values , which allows or denies moving for related columns.