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
100
Infragistics delete row using string primaryKey
posted

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?

index.zip
Parents
No Data
Reply
  • 15320
    Verified Answer
    Offline posted

    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

    stringPK.zip
Children
No Data