I use the RadDiagram to show a program flow. It works well, but I'd like to filter which content can and can't be pasted.
For example, certain custom shapes should only occur once in the flow.
Is there a way to disallow some items to be pasted?
if (you want to paste in the currently selected container)
{
diagram.Paste();
}
else
{
// Do nothing.
}
}
Note that in RadDiagram you can paste any information coming from your Clipboard and you might have to consider that fact while implementing your logic. For your convenience, we have prepared a sample project demonstrating this approach.
Please, give this project a try and let us know if this works for you.
Regards,
Dinko
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items