We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Close Icon
Unfortunately, activation email could not send to your email. Please try again.
Close Icon
close icon
Vote for your favorite ebook
Succinctly Readers Awards 2020
Syncfusion Feedback


Thread ID:





61679 May 30,2007 07:37 PM UTC Jun 1,2007 08:35 AM UTC ASP.NET Web Forms (Classic) 3
Tags: Tools
Asked On May 30, 2007 07:37 PM UTC

Is there a way to set both the datatextfield and datavaluefield and get the datatextfield in the to display in the text field?

The default behavior appears to use the datatextfield unless a the datavaluefield is populated.

I need the datavaluefield for updates but want the users to see just the datatextfield in the textbox.

Maheswari [Syncfusion]
Replied On May 31, 2007 02:12 PM UTC

Hi Richard,

I am afraid that there is no property to display the datatextfield value in the textbox when both fields are set.

I have created a feature request and notified our development team on this regard.

Please let me know if you have any other questions.

Thank you for using Syncfusion products.


Richard Slauenwhite
Replied On May 31, 2007 02:21 PM UTC

I guess the obvious next question is "If we have the source code, should I be able to make the change?"

Maheswari [Syncfusion]
Replied On June 1, 2007 08:35 AM UTC

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 :

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.
//Return the string
return sText;

Please refer the attached sample which illustrates the above :

I hope this helps you.

Thank you for using Syncfusion products.



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon