I'm using a RadComboBox (v2010.2.812.1040) where a user can select the country. The property in the underlining looks like:
Public Property LandId() As Integer
Get
Return _LandId
End Get
Set(ByVal value As Integer)
If value = 0 Then
Throw New Exception("Bitte Land angeben!")
End If
If value <> _LandId Then
_LandId = value
NotifyPropertyChanged("LandId")
End If
End Set
End Property
But in the Radcombo a Standard-Error text is show. How can i force the control to show MY error text...?
Thanks,
Neils
1 Answer, 1 is accepted
0
Boyan
Telerik team
answered on 07 Sep 2010, 09:43 AM
Hi Neils,
I tested the issue and I was able to show my custom message using this:
Ifvalue <> Me.selectedIndex Then
Ifvalue = -1 Then
ThrowNewException("Custom exception!!")
Else
Me.selectedIndex = value
Me.OnPropertyChanged("SelectedIndex")
EndIf
EndIf
I was using the SelectedIndex though. Could you please send me a simple project where this issue could be observed. This will help greatly in investigating what the problem might be.
Best wishes,
Boyan
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items