I would like the Text to contain the combination of the data source's id and name fields. For example the control:
But in code behind I get an error that source does not have a field 'RemarkCodeID,Name' at the DataBind:
Is there a way I can Implement this?
<telerik:RadListBox runat="server" ID="lstAvailableRemarkCode" Width="500px"<br> Height="300px" SelectionMode="Multiple" AutoPostBackOnReorder="true" EnableDragAndDrop="true"<br> OnDropped="RadListBox_Dropped" AllowTransfer="true" TransferToID="lstAssignedRemarkCode"<br> ButtonSettings-RenderButtonText="true" Localization-ToRight="Add" Localization-ToLeft="Remove"<br> ButtonSettings-ShowTransferAll="False" ButtonSettings-ShowReorder="False" ButtonSettings-ShowDelete="False"
ButtonSettings-HorizontalAlign="Center" ButtonSettings-VerticalAlign="Middle"
ButtonSettings-AreaWidth="30px"
DataTextField="RemarkCodeID,Name" DataTextFormatString="{0} - {1}" DataValueField="RemarkCodeID"
OnItemDataBound="lstAvailableRemarkCode_ItemDataBound">
<ButtonSettings AreaWidth="100" />
</telerik:RadListBox>But in code behind I get an error that source does not have a field 'RemarkCodeID,Name' at the DataBind:
Is there a way I can Implement this?
