Validation Tooltip just showing standard message

2 posts, 0 answers
  1. Heiko
    Heiko avatar
    124 posts
    Member since:
    Oct 2012

    Posted 02 Sep 2010 Link to this post

    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
  2. Boyan
    Admin
    Boyan avatar
    758 posts

    Posted 07 Sep 2010 Link to this post

    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
  3. DevCraft banner
Back to Top