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
Thanks for your reply.
I am using 11.2 version (Infragistics4.Web.v11.2, Version=11.2.20112.1019,). Yes I am using batch update feature.
I am attaching the code sample which has the webdatagrid definition in aspx page , the definition of dataobject associated with it and the java script code which does the client side add operation.
I am getting only the following error:
Microsoft JScript runtime error: Sys.ArgumentUndefinedException: Value cannot be undefined.Parameter name: type
There is no stack trace. So, It is becoming difficult for me to debug.
Am I doing anything wrong in the template field declaration. I am not able to get the user selected value in the dropdown. How do I get the selected value ?
Can you please point me some tutorials on template data field
I have one more query also. I want to keep a button as a template data field in the grid, when I click on the button, the button click function should be called with out page load and I want to access the row, in which the button is clicked to perform some action.
Thanks,
Kalyani
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