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

Parents
No Data
Reply
  • 33839
    posted

    Hi kalyanigoli,

    Are you using batch updating on the Editing Core (available in 11.2 and up).  Do the order of the values you have in the array match the order in your columns collection.  Do you think you could attach a running sample here to look at?  Or maybe a more descriptive error stack trace for the exception?

    regards,

    David Young

Children