Hi Richard,
I regret for the inconvenience caused. On further investigation we have found that to use datatextfield value in the textbox when both datatextfield and datavaluefield are set can be achieved by using the below code :
[Code]
function OnItemChecked(Odata)
{
// Get Text separator symbol from Controls attribute collection.
var TextSepearator=document.getElementById("MultiSelectionDropDown1").getAttribute('TextSeparator');
var sText = "";
// Get the number of Checked Items in the Control's Popup
var nSelItemsCount = Odata.Instance.SelectedItems.length;
if( 0 < nSelItemsCount )
{
//Iterate and form the string with CheckedItems Text and Text separator
for( var i = 0; i < nSelItemsCount - 1; i++ )
{
var oItemData = Odata.Instance.SelectedItems[ i ];
sText += oItemData.Text + TextSepearator;
}
sText += Odata.Instance.SelectedItems[ nSelItemsCount - 1 ].Text;
}
//In the attached sample, I have displayed the Value field by an Div Tag, ' Value '. Client Objects 'NewText ' property have Checked Items Value field.
document.getElementById("Value").innerText=Odata.NewText;
//Return the string
return sText;
}
Please refer the attached sample which illustrates the above :
Forum_61679.zipI hope this helps you.
Thank you for using Syncfusion products.
Regards,
Maheswari