Posted 24 Aug 2011 Link to this post
Private
Sub
RadListControl1_SelectedIndexChanged(
ByVal
sender
As
System.
Object
,
e
Telerik.WinControls.UI.Data.PositionChangedEventArgs)
Handles
RadListControl1.SelectedIndexChanged
If
RadListControl1.SelectedIndex > -1
Then
Dim
tenants
Tenant = RadListControl1.SelectedItem
RadTextBox5.Text = tenants.ID
RadTextBox6.Text = tenants.FirstName
RadTextBox7.Text = tenants.Existing
RadTextBox8.Text = tenants.LastName
End
Posted 29 Aug 2011 Link to this post
Thank you for writing. You have to use the RadListControl, SelectedValue property or SelectedItem.Value if you want to retrieve the value of the item you have set. I hope this will help. If you have further questions, I would be glad to assist.
Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>
RadListControl1.SelectedItem
Dim tenants As Tenant = RadListControl1.SelectedValue or Dim tenants As Tenant = RadListControl1.SelectedItem.Value
Dim tenants As Tenant = RadListControl1.SelectedItem.Value
Posted 01 Sep 2011 Link to this post
Thank you for your reply. I have attached a sample application where I have tried to implement a scenario like yours. The RadListControl works a bit differently compared to the standard ListBox. The standard ListBox uses the ToString method of a class to display text for each item. The RadListControl items are composed of text and value. The text is the string displayed on the item and the value is the actual data. I hope this will clarify how the RadListControl works. If you have other questions do not hesitate to write back.