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

Visual Inheritance

8 Answers 145 Views
GridView
This is a migrated thread and some comments may be shown as answers.
DoomerDGR8
Top achievements
Rank 2
Iron
Iron
Iron
DoomerDGR8 asked on 11 Jan 2011, 06:11 PM
I'm trying to inherit from a base form with a telerik grid. The grid's modifier is set to protected. On the inheriting form, the grid appears but completely disables as if it's modifier is Privet (it's not). Other controls (Microsoft + Telerik) are not showing this behaviour. They are working properly when their modifier is set to protected.

Kindly help me in this regard.

8 Answers, 1 is accepted

Sort by
0
Accepted
Richard Slade
Top achievements
Rank 2
answered on 11 Jan 2011, 09:21 PM
Hello,

The access modifier shouldn't make any difference on whether the grid is enabled. Please can you provide a code sample and I'll be happy to take a look at it for you.
Thanks
Richard
0
DoomerDGR8
Top achievements
Rank 2
Iron
Iron
Iron
answered on 12 Jan 2011, 11:51 AM
I have a solution uploaded here that is presenting the behavior. Kindly have a look at it. All other controls are modifiable in the inherited form as their access modifier is set to Protected. All except the Grid.
0
Richard Slade
Top achievements
Rank 2
answered on 12 Jan 2011, 12:14 PM
Hello,

This seems to be an issue with the property designer. You can still reach the grid programatically.
Hope that helps
Richard
0
DoomerDGR8
Top achievements
Rank 2
Iron
Iron
Iron
answered on 12 Jan 2011, 12:26 PM
The same thing is happening in RibbonBar. I can attempt to kill all my time by doing the grid from code but I can't do the Ribbon. Any other suggestion please? I'm a bit desperate here.
0
Richard Slade
Top achievements
Rank 2
answered on 12 Jan 2011, 12:32 PM
Hello,

I'm afraid not at the moment. I tried moving the base form into the same project and making the grid public, but it has the same effect. I'm sure there is a good reason, but I can't think why at the moment.
Richard
0
Richard Slade
Top achievements
Rank 2
answered on 12 Jan 2011, 12:38 PM
Hello,

Actually, this makes sense because you are inheriting from the form and not the grid. Try it by also adding a standard Microsoft datagrid, and it will be the same.
Regards,
Richard
0
DoomerDGR8
Top achievements
Rank 2
Iron
Iron
Iron
answered on 12 Jan 2011, 01:07 PM
This grid for the search forms is gonna have many properties common. Do you see any way around this then? Can I somehow have a grid called SearchGridView that inherits RadGridView with my properties set in a separate BaseControls Projects?
0
Accepted
Richard Slade
Top achievements
Rank 2
answered on 12 Jan 2011, 01:14 PM
Hello,

In our own prjects, we have many base controls too, but we create separate base form, and base grid controls. We can then just drag on a base grid onto one of our base forms.
Let me know if you need further assistance.
Richard
Tags
GridView
Asked by
DoomerDGR8
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Richard Slade
Top achievements
Rank 2
DoomerDGR8
Top achievements
Rank 2
Iron
Iron
Iron
Share this question
or