I have an Infragistics grid and am unable to delete a row when the primaryKey of the grid is of dataType string.
I can not set my primaryKey as dataType number because it is of this format: "KIT_001". Is there any clever way of using a delete button and being able to delete rows with this kind of data? Perhaps a way to set an incremented ID and use that for the delete button?
Hello John,
Please note that since the primary key in your case is of string dataType, the placeholder for it inside the button onclick event handler should be marked with quotes. For instance:
template: "<input type='button' onclick='deleteRow(\"${ProductID}\")' value='Delete' class='delete-button'/>". I modified your sample, so that it works properly and attached it for your reference.
If you need further assistance, feel free to contact me.
Regards,
Tsanna