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

Validation Tooltip just showing standard message

1 Answer 76 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Heiko
Top achievements
Rank 1
Iron
Veteran
Heiko asked on 02 Sep 2010, 07:35 PM
Hi,

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

Sort by
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:
If value <> Me.selectedIndex Then
    If value = -1 Then
        Throw New Exception("Custom exception!!")
    Else
        Me.selectedIndex = value
        Me.OnPropertyChanged("SelectedIndex")
    End If
End If

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
Tags
ComboBox
Asked by
Heiko
Top achievements
Rank 1
Iron
Veteran
Answers by
Boyan
Telerik team
Share this question
or