PDA

View Full Version : Grid Locking functionality - want to restrict it only first column



varmaj80
16 Dec 2014, 3:12 PM
Hello all,

I am having a grid where the first column should be locked. I have done that using the locked:true and draggable:false properties. Now if I drag any other column next to this first column or drag on top of or against the first column, that column sits next to this first column and is getting locked. Is there anyway that I can restrict the locking mechanism only to the first column and though all other columns are draggable, I don't want them to be locked. How can I do this?. Is there a way that I can restrict any other column from getting locked.

Here is my code.
columns: [
{
header: "Reg Num",
width: 85,
locked: true,
draggable:false
},
{
header: 'Email ID',
width: 100,
dataIndex: 'emailId',
sortable: true
},
{
header: "From",
width: 150,
dataIndex: 'fromAddr',
sortable: true
},
]

Thanks...

eyo
18 Dec 2014, 1:04 AM
Hello varmaj80, you can try these;

enableColumnHide : false
enableColumnMove : false
enableColumnResize : false

lumberjack
18 Dec 2014, 6:09 AM
You could set the lockable config to false for all of the columns.

Regards,
Brian

https://fiddle.sencha.com/#fiddle/f9f
f9f