Hi,
I am saving the transferred items from the RadListBoxDestination Box into one database field like so:-
Dim _RadListBoxDestinationText As String = Nothing
For Each item As RadListBoxItem In RadListBoxDestination.Items
_RadListBoxDestinationText = _RadListBoxDestinationText + item.Value.ToString + vbCrLf
Next
'Save_RadListBoxDestinationText
to the Database
The data saves OK
, but then when the user returns I need to repopulate the Destination box and I am trying to do it like so
Dim _DBString As String = _dr("EOT3CCa")
Dim _DBSplitString As String() = _DBString.Split(New Char() {vbCrLf})
Dim _Text As String
For Each _Text In _DBSplitString
Dim item As RadListBoxItem = RadListBoxSource.FindItemByText(_Text)
RadListBoxSource.Transfer(item, RadListBoxSource, RadListBoxDestination)
Next
I get an 'object reference not set..'
I can output the split string into an ordinary textbox just fine but not the RadListBox - it can't find the items.
Is there a better way to do this?
All help most appreciated.
Cheers,
Jon