or
//misspelled
$(placeholder).htmll('<div></div>');
//should be
$(placeholder).html('<div></div>');
//Code example fixed
<script type="text/javascript">
$("#reportViewer1")
.telerik_ReportViewer({
parameterEditors: [
{
match: function (parameter) {
return Boolean(parameter.availableValues) && !parameter.multivalue;
}, createEditor: function (placeholder, options) {
var dropDownElement = $(placeholder).html('<div></div>'),
parameter,
valueChangedCallback = options.parameterChanged,
dropDownList; function onChange() {
var val = dropDownList.value();
valueChangedCallback(parameter, val);
} return {
beginEdit: function (param) { parameter = param; $(dropDownElement).kendoDropDownList({
dataTextField: "name",
dataValueField: "value",
dataSource: parameter.availableValues,
change: onChange
}); dropDownList = $(dropDownElement).data("kendoDropDownList");
}
};
}
}]
});
</script>
public
class
Person {
public
Person() { }
public
string
FirstName {
get
;
set
; }
public
string
LastName {
get
;
set
; }
public
List<Address> Addresses {
get
;
set
; }
public
List<Phone> Phones {
get
;
set
; }
}