Facing trouble in dynamically adding checkbox to grid column editor

  1. #1

    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


    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
  2. #2
    anyone ??? any suggestions??
  3. #3
    Hi,

    Could you provide a full sample to reproduce?

    Please use [CODE ] tags to wrap any code, see
    http://forums.ext.net/showthread.php?3440

Similar Threads

  1. Replies: 14
    Last Post: Aug 18, 2016, 1:57 AM
  2. [CLOSED] Adding dynamically column with NumberField
    By ViDom in forum 1.x Legacy Premium Help
    Replies: 12
    Last Post: Jul 24, 2012, 1:23 PM
  3. Replies: 3
    Last Post: Aug 12, 2011, 5:56 PM
  4. Replies: 2
    Last Post: Nov 25, 2009, 8:35 AM
  5. Trouble adding portlet from code behind
    By cmschick in forum 1.x Help
    Replies: 0
    Last Post: Feb 16, 2009, 8:21 AM

Posting Permissions