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

Inheritance Issue with SplitContainers SplitPanels

4 Answers 40 Views
SplitContainer
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 2
Veteran
Mark asked on 04 Sep 2018, 06:14 PM

I originally posted this in the wrong forum, so that one can be delete.

I am having an issue with SplitPanels that are added into a RadSplitContainer when those controls are inherited.  I have a base form class that has a RadSplitContainer on it, with two SplitPanels in it.  Then I create the new form based on that base form.  I can open the designer the first time and save, but once I close it and re-open it, I get "Duplicate component name 'splitPanel1'. Component names must be unique and case-insensitive"

Some things I have noticed is that the splitPanel lack the "Modifier" property. 

Any help would be greatly accepted.

Thanks


4 Answers, 1 is accepted

Sort by
0
Mark
Top achievements
Rank 2
Veteran
answered on 04 Sep 2018, 06:32 PM

One thing I did forget to state, is that on the inherited form, in one of the SplitPanel, I added a bunch of rad controls (label, textbox, dropdown, etc).

 

 

0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 05 Sep 2018, 08:11 AM
Hello, Mark,         

Following the provided information, I was able to replicate the problem with the SplitPanels in the inherited form. This is a known issue of Windows Forms design-time in general. Please refer to the following StackOverflow thread: https://stackoverflow.com/questions/22181926/controls-on-inherited-form-are-locked-can-it-be-undone

We also have a known issue regarding the Modifiers property of the SplitPanels.You can track its progress, subscribe for status changes and add your comments on the following link - https://feedback.telerik.com/Project/154/Feedback/Details/199235-fix-radsplitcontainer-the-splitpanel-access-modifier-cannot-be-set-to-public-o

I hope this information helps. If you have any additional questions, please let me know.  
 
Regards,
Dess
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Mark
Top achievements
Rank 2
Veteran
answered on 05 Sep 2018, 12:02 PM

Dess

Thanks for the reply, I was hoping this wasn't the case.  This throws a huge monkey wrench into our design using SplitContainers/SplitPanels in our base classes.  After reading the Stack Overflow posts, one suggested adding the controls in the constructor.  Not sure how well that will work, but I will give it a try.  

One questions, does the RadPageView have this same issue?  I could use that instead.

 

TIA

0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 06 Sep 2018, 07:59 AM
Hello, Mark,          

When the Modifiers property of a RadControl is set to "protected" or "public" in a base form, the code DOM serialization and the overall design-time behavior of the control is incorrect in the child form. The following Knowledge Base article is quite useful on this topic: https://www.telerik.com/support/kb/winforms/details/using-radcontrols-for-winforms-with-inherited-forms

As to the RadPageView, I have tested the same scenario and when the Modifiers property of the control and the separate pages is set to Protected, everything seems to work as expected on my end. You can give it a try if it suits your requirement.

If you need any further assistance please don't hesitate to contact me.

Regards,
Dess
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
SplitContainer
Asked by
Mark
Top achievements
Rank 2
Veteran
Answers by
Mark
Top achievements
Rank 2
Veteran
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or