This is a migrated thread and some comments may be shown as answers.

Event handling when subclassing

1 Answer 13 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Thomas Scheelhardt
Top achievements
Rank 1
Thomas Scheelhardt asked on 12 Sep 2008, 09:49 AM
Hi,

It is common practise to have protected virtual OnEventName methods for all events raised on a non sealed class.

Unfortunately RadControls do not follow this convention, which means that should you want to derive from some RadControl and handle one or more events, you need to subscribe to the events as would a normal consumer of the event.

This is bad practise as it leaves you with no control over when your handling is performed in relation to other event subscribers.

I would hope that RadControls in future versions of the Suite will follow the proper convention.

Thanks,
Thomas Scheelhardt

1 Answer, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 15 Sep 2008, 01:15 PM
Hello Thomas,

Your suggestion makes perfect sense. We have added it in our TODO list for the Q3 2008 release. Your telerik points have been updated.

Regards,
Albert
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
General Discussions
Asked by
Thomas Scheelhardt
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Share this question
or