Validation Tooltip just showing standard message

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

    Posted 02 Sep 2010 Link to this post


    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
                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
                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...?

  2. Boyan
    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!!")
            Me.selectedIndex = value
        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,
    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
Back to Top