You can easily achieve this using our ControlExtensions:
- static method which determines whether the control is in Sitefinity design mode - you are editing a page. There are also IsPreviewMode
- determines whether the control is in Sitefinity preview mode.
-determines whether a control instance is in backend. Please refer to the sample code below:
.IsDesignMode() && !
If you have any additional questions, please let us know.
the Telerik team
Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking
system and vote to affect the priority of the items