Can you please share code of cancel event workaround.
I've followed this post and I was able to add icon form my custom command (Remove).
And I am using Editor popup. When I cancel out editor window without making any changes to the data, added icon in my custom remove button disappears. So I added a workaround (which I found from another post) using cancel event by adding
With this it takes care the icon disappearing issue when I cancel out from updating data.
This work around however, seems to break when I try to add new record. If I cancel out without adding a new record,
a row temporarily added to the grid don't seem to go away.
If I remove work around with cancel event, works. But then again, icon disappears.
Do you have better work around for this?