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

Custom attributes validation

1 Answer 51 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Eliyahu Goldin
Top achievements
Rank 1
Eliyahu Goldin asked on 16 Feb 2009, 03:52 PM

I am using an Item template with an custom attribute Offset. Everything works ok except I am getting a lot of validation warnings on my Offset attribute. Is there a way to avoid them?

<telerik:RadComboBox runat="server" ID="ddlDayOffset" AllowCustomText="false" NoWrap="true" Width="40ex" 
MarkFirstMatch="true" HighlightTemplatedItems="True">  
<ItemTemplate> 
<div><span style='font-weight:bolder'><%# DataBinder.Eval(Container, "Attributes['Offset']") %></span> the appointment day</div> 
</ItemTemplate> 
<Items> 
<telerik:RadComboBoxItem Offset="3 weeks before" Value="-21"  /> 
<telerik:RadComboBoxItem Offset="20 days before" Value="-20" /> 
<telerik:RadComboBoxItem Offset="19 days before" Value="-19" /> 
<telerik:RadComboBoxItem Offset="18 days before" Value="-18" /> 
<telerik:RadComboBoxItem Offset="17 days before" Value="-17" /> 
 

1 Answer, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 16 Feb 2009, 04:01 PM
Hello Eliyahu Goldin,

Those validation errors stem from the fact that there is no "Offset" property of the RadComboBoxItem class. The only workaround is to set them from codebehind.

Greetings,
Albert
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
ComboBox
Asked by
Eliyahu Goldin
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Share this question
or