Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
90
java script error while adding a row into web data grid from the client side
posted

Hi,

I am using infragistics drag and drop framework. I am dropping a node from the tree and adding it to webdatagrid. In the drop handler, i am adding a row to the grid on the client side. The grid has 2 bound data fields and one template datafield which is a webdropdown. I am getting the following error while adding

Microsoft JScript runtime error: Sys.ArgumentUndefinedException: Value cannot be undefined.

Parameter name: type

 

If I reload the page and drag and drop this error is not seen or If I remove the templatedatafield from the webdatagrid the error is not seen

I am adding to the grid like below

 var newDisplayColumn = [sourceContent, key, 'SUM'];

 var grid = $find("<%= DisplayColumnGrid.ClientID %>");

                var rows = grid.get_rows();

                rows.add(newDisplayColumn);            

It is firing the insert method of the grid.  What values need to be supplied in the array. Do we need to do any thing extra for template data field. 

How can I debug this issue.

Please provide me guidance on this