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

Rendering problem of Custom Radcombox Asp.net

1 Answer 30 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Ragupathi
Top achievements
Rank 1
Ragupathi asked on 26 Jul 2008, 07:36 AM

Hi,

I have created a custom control (combo box) inheriting Telerik ComboBox. I have added some property in addition to the property provided by the Telerik.

In the design time after dragging and dropping the combobox, I tried adding an item for the combobox which resulted in the following error

Combobox - Combobox1There was an error rendering the control.

Type 'ComboboxControl.Combobox' does not have a public property named 'RadComboBoxItem'.

Source view of my control is as follows:

<cc4:Combobox ID="Combobox1" runat="server" Text="DropDownList">

    <telerik:RadComboBoxItem runat="server" Text="RadComboBoxItem1"></telerik:RadComboBoxItem>

</cc4:Combobox>

1 Answer, 1 is accepted

Sort by
0
Rosi
Telerik team
answered on 28 Jul 2008, 11:16 AM
Hello Ragupathi,

When you add new RadComboBoxItem it needs to be added to the Items collection of RadComboBox first.

I suggest you modify your code as follows:
<cc4:Combobox ID="Combobox1" runat="server" Text="DropDownList">  
       <Items> 
            <telerik:RadComboBoxItem runat="server" Text="RadComboBoxItem1"></telerik:RadComboBoxItem> 
      </Items> 
</cc4:Combobox> 
 
 


Regards,
Rosi
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Dock
Asked by
Ragupathi
Top achievements
Rank 1
Answers by
Rosi
Telerik team
Share this question
or