TypeError: a is null in MicrosoftAjax.js

TypeError: a is null in MicrosoftAjax.js

Hi All,

I am working with asp.net and when i run the sample it shows an error like "a is null" in MicrosoftAjax.js. I simply use a color picker in a grid item template. My code is as follows

my scriptmanager have ScriptMode as Release. if i am not using release it returns Sys.ArgumentsNull error.. so i use release in script manager...

<asp:ScriptManager ID="ScriptManager2" runat="server" ScriptMode="Release">      
    </asp:ScriptManager>  
 

CodeBehind:
protected void GridGroupingControl1_QueryCellStyleInfo(object sender, GridTableCellStyleInfoEventArgs e)
        {
            if (e.TableCellIdentity.TableCellType == GridTableCellType.RecordFieldCell || e.TableCellIdentity.TableCellType == GridTableCellType.AlternateRecordFieldCell)
            {
                if (e.TableCellIdentity.Column.MappingName == "ID")
                {

           
                    var a = e.Style.TableCellIdentity.RowIndex;
                   ColorPicker clPicker = new ColorPicker();
                    clPicker.ID = "ColorPickerCtrl1" + a;
}
}
}

Is there any way to solve this issue.....

Thanks advance!