Hi
I'm using the angular directive for the TreeList and am seeing some strange behaviour when trying to set one or more locked columns. My column definitions are read from a database and returned to the client as an array :
[
{ field:
'col0'
,
fieldName:
'Name'
,
title:
'Name'
,
locked:
true
,
width: 240
},
{ field:
'col1'
,
fieldName:
'ID'
,
title:
'ID'
,
hidden:
true
,
width: 120
},
...
]
This array is then assigned to the config.columns property at which point the treelist is instantiated (via the k-ng-delay="widgetCtrl.gridConfig.columns").Unfortunately the locked property seems to be being ignored.
Strangely if I remove the locked property from the returned array and replace it with a hardcoded value:
restService.genericApi(self.widget.url +
'columns'
,
false
).queryPost(json).$promise.then(
function
(defns) {
_defn = defns[0];
_defn.columns[0].expandable =
true
;
_defn.columns[0].locked =
true
;
self.gridConfig.columns = _defn.columns;
},
function
(error) {
});
This does lock the first column but then I have serious issues resizing: the locked column works ok. If I try to resize the 2nd column, the 5th one changes. It's the same all the way across (i.e. column which resizes is +3).
Is this a known issue? and if so, is there a workaround?
Thanks
Keith