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

Grid auto code generation

1 Answer 41 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Mohammad
Top achievements
Rank 1
Mohammad asked on 24 Dec 2016, 07:44 AM
Hi,
I need to create a custom user control which contains a grid and some other components, the grid is a public property of the panel.
When i drop the panel on the form and use the grid property to create columns everything is fine, but suddenly i realized the form is not generating added column's code in designer.cs, and after build there is no column left in my grid.
So, my question is how can i force form to generate the columns code?
Tnx

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 26 Dec 2016, 10:24 AM
Hi Mohammad,

Thank you for writing.

The visual inheritance is not supported by our controls and you cannot build the controls in such way. In this case, you should either set up the grid in the user control or add it directly to the form. 

This is valid for the standard controls as well. You can test this with the standard grid.

Please do not hesitate to contact us with any other questions or concerns. 

Regards,
Dimitar
Telerik by Progress
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
GridView
Asked by
Mohammad
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Share this question
or