properties - KendoUI DropDown list - Add custom data fields -


Currently, I can only store 'DataTextfield' and 'Data Validated' in the Condo dropdown list, but I must be enabled To store more values ​​for each item in the list.

I populate the dropdown with JSON data, there are multiple properties for each index in the array in the JSON array.

Ways to add more value (such as 'dataCustomField1', 'dataCustomField2', 'dataCustomField3') for drop down items

I got the solution

  var dropdown = $ ("# ddList"). Data ("canodoadupundownlast"); Var ddData = dropDown.dataSource.view () [dropDown.select ()];   

The DDData contains all the JSONs of the selected items in the drop down.

Comments

Popular posts from this blog

asp.net - Procedure or function "Procedure name" expects a parameter "Param name" which was not supplied occurs rarely -

c# - The item with identity 'Id' already exists in the metadata collection. Parameter name: item -

c++ - Redefined variable in the other module -