Mar 22, 2011, 11:46 AM
Facing trouble in dynamically adding checkbox to grid column editor
Following is the code that I am using to render checkbox inside grid column editor
Error: Expected ?:?
When I tried to debug it, VS takes me to the following code:
can you suggest me, what could be wrong here?
Ext.Net.Column col;
grid.ClicksToEdit = 1;
col = new Column();
col.ColumnID = "IsSelected";
col.Header = "";
col.DataIndex = "IsSelected";
col.Width = 25;
col.Editable = true;
Ext.Net.Checkbox _chk = new Ext.Net.Checkbox();
col.Editor.Add(_chk);
grid.ColumnModel.Columns.Add(col);
Above code was running fine with 0.8 version. However, when I tried to move the code to new coolite version i.e. 1.0, it started giving me following client script error. Error: Expected ?:?
When I tried to debug it, VS takes me to the following code:
editor:new Ext.grid.GridEditor(Ext.apply({field:{ ctl00_PageBody_idc1136271ac114f7aadb37011aab8f3c3_ClientInit}}, {}))
can you suggest me, what could be wrong here?
Last edited by Daniil; Mar 22, 2011 at 3:38 PM.
Reason: Please use [CODE] tags