本人是在 SpreadJS 单元格中做输入联想 AutocompleteCellType.prototype.activateEditor = function (editorContext, cellStyle, cellRect, context) {
var $editor = $(editorContext);
// $editor.attr("gcUIElement", "gcEditingInput");
$editor.kendoAutoComplete({
dataSource: this.availableTags
}).data("kendoAutoComplete");
// $editor.attr("gcUIElement", "gcEditingInput"); // keep focus when mouse down on dropdown
};
AutocompleteCellType.prototype.setEditorValue = function (editorContext,value) {
console.log(editorContext);
};
AutocompleteCellType.prototype.getEditorValue = function (editorContext) {
console.log(value);
return $(editorContext).val();
};
在getEditorValue 方法获取值的时候 $(editorContext).val() 只能获取输入的值 并不能获取选中的值 请问这是怎么一回事 ?
|
|