or

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


function
radPricingLevelTree_ClientNodeClicked(sender, eventArgs)
{
var node = eventArgs.get_node();
var comboBox = $find("<%= radPricingLevelCombo.ClientID %>");
comboBox.set_text(node.get_text());
comboBox.trackChanges();
comboBox.get_items().getItem(0).set_value(node.get_text());
comboBox.commitChanges();
comboBox.hideDropDown();
}
Pls help