MD
24 Mar 2007, 10:15 PM
I'm having a bit of trouble determining if this is in fact possible to do. An example would be that I have data coming in to populate the grid, and
As part of the data that populates my EditorGrid, I have flag values to denote whether a row is 'locked' or 'unlocked' (0/1). As part of the renderer for the row's columns/cells, I would test that 0/1 (true/false), and in turn either allow editability as normal, or disable it for that cell. As normal, when the data is first populates the grid, it would pass through the renderer and any flagged as locked would be disabled right off the bat.
I've been through many posts in the forum seeking out an answer, but have to come across the right way to implement, or whether in fact it's even possible. My failed attempt at it so far was as such:
function renderBlah(value, p, r){
if (r.data['locked'] == "1")
p.attr = 'ext:editable="false" ext:qtip="Tooltip Text" ext:qtitle="Tooltip Title"';
return value;
}
The ext:editable="false" was more of a guess based on the actual working attribs for qtip/qtitle :oops:
As part of the data that populates my EditorGrid, I have flag values to denote whether a row is 'locked' or 'unlocked' (0/1). As part of the renderer for the row's columns/cells, I would test that 0/1 (true/false), and in turn either allow editability as normal, or disable it for that cell. As normal, when the data is first populates the grid, it would pass through the renderer and any flagged as locked would be disabled right off the bat.
I've been through many posts in the forum seeking out an answer, but have to come across the right way to implement, or whether in fact it's even possible. My failed attempt at it so far was as such:
function renderBlah(value, p, r){
if (r.data['locked'] == "1")
p.attr = 'ext:editable="false" ext:qtip="Tooltip Text" ext:qtitle="Tooltip Title"';
return value;
}
The ext:editable="false" was more of a guess based on the actual working attribs for qtip/qtitle :oops: