Hello,
is it possible to interact when the user clicks on the "remove" button on the list item in the property grid, in order I can show a confirm "Delete" dialog?
See attached image.
Hello Mladen,
In order to get the value that is removed from the list, I would recommend using the CommandParameter property of the event arguments of the CommandExecuting event referenced above. When the Command is the PropertyGridCommandType.RemoveListEntry, the e.CommandParameter (where 'e' is the event arguments) will return a PropertyGridPropertyItem, whose Value property will be the value that is removed from the list. For example, you can use the following code to do this:
if (e.Command == PropertyGridCommandType.RemoveListEntry) { PropertyGridPropertyItem item = e.CommandParameter as PropertyGridPropertyItem; var removedObj = item.Value; }
Please let me know if you have any other questions or concerns on this matter.
Hi all,
In this case, how can we get the value that will be removed from the list?
I am very glad that you have managed to achieve the functionality you wanted.
Thank you for using Infragistics components.
Sincerely,Radko KolevSenior Software Developer
Thanks!
Now it is working :)
Hello Markus,
Are you sure you are handling the "CommandExecuting" event and not the "CommandExecuted" event ?
I am currently testing with version 16.1.20161.2056 and it looks like this property is present.