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

how to load entire Telerik at runtime

1 Answer 118 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Dave
Top achievements
Rank 1
Dave asked on 09 Apr 2012, 01:03 PM
Hi
   I am developing an application (desktop based ) where I wanted to use telerik component for notifiication icon messages. however the main concern is that telerik.dll should not be added in the project as reference but if it is found in installed folder at runtime then it should load using reflection and then add control at runtime and use it. if telerik.dll is not in the installed folder then regular process will go on and simple windows based notification will be used which is currently working.

so my question is , can we use telerik windows component without adding reference like i explained above, if yes then any idea's how ?

Best Regards
Rizwan Bashir

1 Answer, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 12 Apr 2012, 02:31 PM
Hi Rizwan,

In theory, this is possible. However, the more elegant way to do it concerns creating a few additional assemblies - one responsible for RadControls, one responsible for the standard controls, and one for the interface that all controls should implement. Finally, you can load the assemblies responsible for the controls dynamically in your application and depending on which assembly is loaded, your application will provide different UI.

Please note that whatever approach you take to deploy your application, in case the assemblies are not merged with the executable of this application, you should build them as described here.

Feel free to modify the provided solution according to your specific needs.

All the best,
Nikolay
the Telerik team
RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
Tags
General Discussions
Asked by
Dave
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Share this question
or