how to load entire Telerik at runtime

2 posts, 0 answers
  1. Dave
    Dave avatar
    1 posts
    Member since:
    Feb 2009

    Posted 09 Apr 2012 Link to this post

       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
  2. Nikolay
    Nikolay avatar
    1802 posts

    Posted 12 Apr 2012 Link to this post

    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,
    the Telerik team
    RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
  3. DevCraft R3 2016 release webinar banner
Back to Top