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

Customize Advanced Form Template In Web Application

1 Answer 68 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Dave Miller
Top achievements
Rank 2
Dave Miller asked on 01 Oct 2008, 03:25 PM
I am trying to customize the advanced form template in a web application project. The problem seems to be that the MultipleValuesResourceControl.ascx and  ResourceControl.ascx both use

 "public partial class ResourceControls : UserControl"

for their .cs files. These contain duplicate properties and functions which generate errors when I try to build the project.

What would I need to do modify the template in a web applicaion project?

Thanks,
Dave

1 Answer, 1 is accepted

Sort by
0
T. Tsonev
Telerik team
answered on 03 Oct 2008, 03:33 PM
Hello Dave,

You are correct, the class name is duplicated in the two user controls. This is a bug that we have since fixed. You need to rename ResourceControls to MultipleValuesResourceControl in MultipleValuesResourceControl.ascx and change the corresponding Inherits clause in the ascx file:
<%@ Inherits="MultipleValuesResourceControl" ... %>

Then you need to replace CodeFile with CodeBehind in the Control Directive:
<%@ Control CodeBehind="BooleanAttributeControl.ascx.vb" ... %>

The last thing to do is generate designer classes (ControlName.designer.cs). You can do this by right-clicking the controls and selecting "Convert to Web Application". Because of the dependancies, VS might get confused during this process. If you receive an error message, please reload the project and try the conversion again.

Let us know how this goes.

Best wishes,
Tsvetomir Tsonev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Scheduler
Asked by
Dave Miller
Top achievements
Rank 2
Answers by
T. Tsonev
Telerik team
Share this question
or