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

Index is not Changing when single item in ComboBox

1 Answer 60 Views
MultiColumn ComboBox
This is a migrated thread and some comments may be shown as answers.
Ahmed
Top achievements
Rank 1
Ahmed asked on 06 Aug 2019, 06:18 PM

Hello! 

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

1 Answer, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 08 Aug 2019, 01:45 PM
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.

Regards,
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.
Tags
MultiColumn ComboBox
Asked by
Ahmed
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or