New to Telerik UI for ASP.NET AJAXStart a free 30-day trial

RadMultiColumnComboBox Object

This article lists the client-side API of RadMultiColumnComboBox and how to use it.

To use the API, you must first get a reference to the control's client-side object. For example:

JavaScript
var rmccbObject = $find("<%=RadMultiColumnComboBox1.ClientID %>");

RadMultiColumnComboBox is a server-side wrapper over the Kendo UI MultiColumnComboBox Widget. Thus, it exposes the API of the underlying Kendo widget. To get a reference to the Kendo widget instance, you can do either of the following:

  • Use the get_kendoWidget() method of the MS AJAX wrapper:

    JavaScript
      var rmccbObject  = $find("<%=RadMultiColumnComboBox1.ClientID %>"); //the standard script control object
      var kendoMccbm = rmccbObject.get_kendoWidget(); //the Kendo widget
  • Get the Kendo Widget in its usual way. Make sure to use the $telerik.$ jQuery reference:

    JavaScript
      var kendoMccbm = $telerik.$("#<%=RadMultiColumnComboBox1.ClientID %>").data("kendoMultiColumnComboBox"); //the jQuery selector must get the RadMultiColumnComboBox1 wrapper span element

In addition to using the Kendo method directly, you can also use their wrappers that follow the MS AJAX convention through the RadMultiColumnComboBox client object.

Table1: Client-side methods exposed by the MS AJAX RadMultiColumnComboBox object

NameParametersReturn TypeDescription
closenonenoneCloses the dropdown.
destroynonenoneDestroys the underlying Kendo widget (calls its destroy method). Once you call it, you will not be able to use the widget or control.
focusnonenoneFocuses the input.
get_dataItemNumberobjectReturns the data item for the corresponding index. If no index is provided, the data item for the selected item will be returned.
get_filternonestringReturns the filtering method used to determine the suggestions for the current value.
get_itemsnoneArrayReturns an array of the DOM <li> elements, which correspond to the data items from the Kendo UI DataSource of the widget.
get_kendoWidgetnoneobjectReturns a reference to the underlying Kendo MultiColumnComboBox widget.
get_readOnlynoneBooleanReturns whether the input is readonly and typing is not allowed.
get_selectednoneNumberReturns the index of the selected item. If custom value is entered, returns -1.
get_textnonestringReturns the current text.
get_valuenonestringReturns the current value.
opennonenoneOpens the dropdown.
refreshnonenoneRefresh the popup by rendering all items again.
searchstringnoneSearches the data source for the provided value and displays any matches as suggestions.
set_dataSourceobjectnoneSets the dataSource of the widget and rebinds it. Can be an actual kendo.data.DataSource object or an array of object literals.
set_enabledBooleannoneEnables or disables the widget if you pass true or false respectively.
set_filterstringnoneSets the filter setting of the underlying widget. Can be startswith, endswith, eq and contains. Pass none to disable filtering.
set_readOnlyBooleannoneSets whether the input is readonly and typing is disabled.
set_selectedobjectnoneSets the new selected item. See the widget's select method for more details on the possible arguments you can pass and its behavior.
set_textstringnoneSets the text. See the underlying text method for more details on its behavior.
set_valuestringnoneSets the value. See the underlying value method for more details on its behavior.
suggeststringnoneSets the value of the widget to the specified argument and visually selects the text.
togglenonenoneOpens or closes the dropdown depending on its current state.

See Also

In this article
See Also
Not finding the help you need?
Contact Support