Index is not Changing when single item in ComboBox

2 posts, 0 answers
  1. Ahmed
    Ahmed avatar
    2 posts
    Member since:
    Aug 2019

    Posted 06 Aug 2019 Link to this post


    I'm facing an error that I'm loading items from a Query in a Database using TableAdapter method. A list of items loads in the CB and data is updated by selecting from the CB. When last item is left in CB, by selecting the item, it don't trigger the index and the application (item) in CB don't loads the data. So, for this, I've decided to add new Empty or Dummy row in CB that it able to trigger index change and load the data.

    My Code is:

    Private Sub FwdDocQuery_SelectedIndexChanged(sender As Object, e As EventArgs) Handles FwdDocQuery.SelectedIndexChanged
        StatusIDRadTextBox1.Text = "2"
        If Not String.IsNullOrWhiteSpace(FwdDocQuery.Text) Then
            Dim index As Integer = ApplicationsBindingSource.Find("ID", FwdDocQuery.Text)
            If index > -1 Then
                ApplicationsBindingSource.Position = index
            End If
        End If
        If DocTypeIDRadTextBox1.Text = "1" Then
            DocTypeTBFWD.Text = "Transcript"
        ElseIf DocTypeIDRadTextBox1.Text = "2" Then
            DocTypeTBFWD.Text = "Degree"
        ElseIf DocTypeIDRadTextBox1.Text = "3" Then
            DocTypeTBFWD.Text = "NOC"
        End If
    End Sub
  2. Dess | Tech Support Engineer, Sr.
    Dess | Tech Support Engineer, Sr.  avatar
    3536 posts

    Posted 08 Aug 2019 Link to this post

    Hello, Ahmed, 

    Your question has already been answered in the other thread you have opened on the same topic. Please, see our answer there for more information.
    We kindly ask you to use just one thread for a specific problem to contact us. Posting the same questions numerous times slows down our response time because we will need to review and address two or more tickets instead of one. 

    Note that most of the forum threads are reviewed by Telerik representatives and sometimes we address the questions asked by our customers in the forums as well. However, a post in the forum doesn't guarantee you a response from the Telerik support team. Moreover, threads are handled according to license and time of posting, so if it is an urgent problem, we suggest you use a support ticket, which would be handled before a forum thread.

    Thank you for your understanding.

    Dess | Tech Support Engineer, Sr.
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top