RadForm visual inheritance

4 posts, 0 answers
  1. Daniel
    Daniel avatar
    8 posts
    Member since:
    Sep 2016

    Posted 19 Jul Link to this post

    Hi,

    what I'm looking for is the possibility to inherit from an application common form, of type RadForm, in wich I've placed some common controls, as RadSplitContainer and so on. 

    The only way to achieve this seems to be create another proejct in solution, of type of WinForms, then convert it as Code Library, creating my generic RadForm in it. So, I can add reference to this solution's project from my main UI project, add a inheriting form and pickup the inheritance from my other DLL. Also in this manner, but this seems to be a problem of VS (2015 Enterprise) I can't get the form to inherit until I manually browse the DLL of my other project, into the BIN\DEBUG folder, also if the project is included in the solution. Very strange...

     

    But, anyway, if I don't create separate project with my common form, I'm unable to inherit from it if is included in the main UI project. Really, I can inherit, manually changing che myForm : BaseTelerikForm inheritance on the code. But, doing this, in designer view I can't see anything in the derived form, but really I've many controls in base RadForm. I've tryed to change the Modifier for each controls, I've checked references to Telerik.WinControls.dll, Telerik.WinControls.UI.dll and Telerik.WinControls.UI.Design.dll how to mentioned in another post without having any change.

     

    Why is so difficult inherit from a standard base Telerik RadForm and what 'm doing wrong?

     

    Thanks so much and sorry for my bad english!

  2. Mark
    Mark avatar
    66 posts
    Member since:
    Oct 2014

    Posted 25 Sep in reply to Daniel Link to this post

    I am having the same issue. Even if I change the "Modifier" to public on the controls, they still don't appear at RUNTIME. 

     

  3. Mark
    Mark avatar
    66 posts
    Member since:
    Oct 2014

    Posted 25 Sep Link to this post

    And I can't believe no one has answered this yet.
  4. Dess
    Admin
    Dess avatar
    2101 posts

    Posted 27 Sep Link to this post

    Hello, Mark, 

    Thank you for writing.  

    Firstly, I would like to note that a post in the forum doesn't guarantee you a response from the Telerik support team. So if it is an urgent problem, we suggest you use a support ticket, which guarantees a response from Telerik representatives.

    As to the question at hand, the Visual Studio designer purposefully disables some controls in a visual inheritance scenario (e.g. RadSplitContainer). When you have such case it is better to set the settings at run-time or use UserControls instead.

    I hope this information helps. Should you have further questions I would be glad to help.

    Regards,
    Dess
    Progress Telerik
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top