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

RadForm visual inheritance

3 Answers 146 Views
Form
This is a migrated thread and some comments may be shown as answers.
Daniel
Top achievements
Rank 1
Daniel asked on 19 Jul 2017, 12:35 PM

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!

3 Answers, 1 is accepted

Sort by
0
Mark
Top achievements
Rank 2
Bronze
Iron
Veteran
answered on 25 Sep 2017, 06:55 PM

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

 

0
Mark
Top achievements
Rank 2
Bronze
Iron
Veteran
answered on 25 Sep 2017, 06:58 PM
And I can't believe no one has answered this yet.
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 27 Sep 2017, 12:07 PM
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.
Tags
Form
Asked by
Daniel
Top achievements
Rank 1
Answers by
Mark
Top achievements
Rank 2
Bronze
Iron
Veteran
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or