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

ListBox items not showing

1 Answer 67 Views
ComboBox and ListBox (obsolete as of Q2 2010)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Asit Aithal
Top achievements
Rank 2
Asit Aithal asked on 08 Nov 2009, 03:48 PM
I have the following code:

        dsNodes.ReadXml(ofdOpen.FileName)
        For Each tbl As DataTable In dsNodes.Tables
            Dim item As Telerik.WinControls.RadItem = New Telerik.WinControls.RadItem
            item.Name = tbl.TableName
            lbNodes.Items.Add(item)
            If blnListItemSelected = False Then
                lbNodes.SelectedItem = tbl.TableName
                blnListItemSelected = True
            End If
        Next

This doesn't work. The Listbox shows as empty. What am I missing?

1 Answer, 1 is accepted

Sort by
0
Asit Aithal
Top achievements
Rank 2
answered on 08 Nov 2009, 04:10 PM
I Solved it. Had to import Telerik.WinControls.UI and not Telerik.WinControls
Tags
ComboBox and ListBox (obsolete as of Q2 2010)
Asked by
Asit Aithal
Top achievements
Rank 2
Answers by
Asit Aithal
Top achievements
Rank 2
Share this question
or