PDA

View Full Version : [OPEN-EXTJSIV-1337]Alias name with embedded . causes error in grid columns



JPfahl
19 Apr 2011, 6:57 AM
Creating a custom grid column with an alias of "widget.computronix.ext.textcolumn" causes an error. If I change the alias to "widget.computronixexttextcolumn" it works fine. aliases with an embedded . work everwhere else just fine.

SCRIPT5007: Unable to get value of the property 'ext': object is null or undefined

evaluatedFn =
function(values, parent, xindex, xcount){return ['<tr class="x-grid-row ',(values['rowCls'] === undefined ? '' : values['rowCls']),'" ',(values['rowAttr'] === undefined ? '' : values['rowAttr']),'><td class="x-grid-cell x-grid-cell-numbercolumn-1077 ',(values['numbercolumn-1077-modified'] === undefined ? '' : values['numbercolumn-1077-modified']),' ',(values['numbercolumn-1077-tdCls'] === undefined ? '' : values['numbercolumn-1077-tdCls']),'" ',(values['numbercolumn-1077-tdAttr'] === undefined ? '' : values['numbercolumn-1077-tdAttr']),'><div unselectable="on" class="x-grid-cell-inner x-unselectable" style="',(values['numbercolumn-1077-style'] === undefined ? '' : values['numbercolumn-1077-style']),'; text-align: left;">',(values['numbercolumn-1077'] === undefined ? '' : values['numbercolumn-1077']),'</div></td><td class="x-grid-cell x-grid-cell-computronix.ext.textcolumn-1078 ',(values.computronix.ext.textcolumn-1078-modified === undefined ? '' : values.computronix.ext.textcolumn-1078-modified),' ',(values.computronix.ext.textcolumn-1078-tdCls === undefined ? '' : values.computronix.ext.textcolumn-1078-tdCls),'" ',(values.computronix.ext.textcolumn-1078-tdAttr === undefined ? '' : values.computronix.ext.textcolumn-1078-tdAttr),'><div unselectable="on" class="x-grid-cell-inner x-unselectable" style="',(values.computronix.ext.textcolumn-1078-style === undefined ? '' : values.computronix.ext.textcolumn-1078-style),'; text-align: left;">',(values.computronix.ext.textcolumn-1078 === undefined ? '' : values.computronix.ext.textcolumn-1078),'</div></td><td class="x-grid-cell x-grid-cell-gridcolumn-1079 ',(values['gridcolumn-1079-modified'] === undefined ? '' : values['gridcolumn-1079-modified']),' ',(values['gridcolumn-1079-tdCls'] === undefined ? '' : values['gridcolumn-1079-tdCls']),'" ',(values['gridcolumn-1079-tdAttr'] === undefined ? '' : values['gridcolumn-1079-tdAttr']),'><div unselectable="on" class="x-grid-cell-inner x-unselectable" style="',(values['gridcolumn-1079-style'] === undefined ? '' : values['gridcolumn-1079-style']),'; text-align: left;">',(values['gridcolumn-1079'] === undefined ? '' : values['gridcolumn-1079']),'</div></td><td class="x-grid-cell x-grid-cell-gridcolumn-1080 ',(values['gridcolumn-1080-modified'] === undefined ? '' : values['gridcolumn-1080-modified']),' ',(values['gridcolumn-1080-tdCls'] === undefined ? '' : values['gridcolumn-1080-tdCls']),'" ',(values['gridcolumn-1080-tdAttr'] === undefined ? '' : values['gridcolumn-1080-tdAttr']),'><div unselectable="on" class="x-grid-cell-inner x-unselectable" style="',(values['gridcolumn-1080-style'] === undefined ? '' : values['gridcolumn-1080-style']),'; text-align: left;">',(values['gridcolumn-1080'] === undefined ? '' : values['gridcolumn-1080']),'</div></td></tr>'].join('');};