Is there any way to delete a custom list style?
These commands seems not working and will create some null reference exception on next opening of manage styles dialog.
4 Answers, 1 is accepted
The methods you are referring to are not enough if you would like to remove the custom list. You will need also to make sure that the list is cleared from all paragraphs that it has been applied on. I have prepared a simple code example how a custom list should be removed from a document:
Please have in mind that using the API in the RadDocument will not add this operation to the Undo stack. I have logged a feature request into our feedback portal for implementing commands for add and delete commands. Here is the link if you would like to subscribe for status changes: Implement add and delete list command.
After running this code to remove an applied costum list style, the opening manage style dialog will throw a null reference exception. Could you please look into it?
I can confirm that there is an exception after removing the list style and trying to open the manage styles dialog.
I am afraid that there is no workaround for this issue. Once we implement the Add and Delete list style commands the feature request item in our feedback portal will be updated. Here is the link: Implement and delete list command
Please excuse us for the inconvenience.
Telerik by Progress