Product Bundles
DevCraft
All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
Web
Mobile
Document Management
Desktop
Reporting
Testing & Mocking
CMS
UI/UX Tools
Debugging
Free Tools
Support and Learning
Productivity and Design Tools
I have a RadComboBox with checkboxes and I want to get all the values in the DataValueField as a comma separated string.
$get("myComboBox").value gets me a comma separated string of the DataTextField and not the DataValueField.
How do I do this?
function
getValuesGeneric( combobox ) {
var
values = [];
items = combobox.get_items();
Array.forEach( combobox.get_checkedIndices(),
( element, index ) {
item = items.getItem( element );
values.push( item.get_value() );
});
alert( values.join(
","
) );
}