Hey There, quick question
Video: http://screencast.com/t/FcBAyj1xG0
Why is the callback only happening initially and subsequent searches only filter on those 5 returned results...?
***EDIT*** My Bad, needed to turn these on
(Also, the templates for some reason are not being applied if you notice)
Video: http://screencast.com/t/FcBAyj1xG0
Why is the callback only happening initially and subsequent searches only filter on those 5 returned results...?
$(
"#search-box"
).kendoAutoComplete({
minLength: 3,
filter:
"contains"
,
dataTextField:
"Title"
,
dataValueField:
"Title"
,
dataSource:
new
kendo.data.DataSource({
type:
"jsonp"
,
severFiltering:
false
,
serverPaging:
false
,
pageSize: 5,
template:
'<dl>'
+
'<dt>Title:</dt><dd>${Title}</dd>'
+
'<dt>Date:</dt><dd>${Date}</dd>'
+
'<dt>By:</dt><dd>${Speaker}</dd>'
+
'</dl>'
,
transport: {
read: {
cache:
true
,
// to prevent jQuery from adding cache buster
dataType:
"jsonp"
,
url: alfresco.BaseURL +
"/alfresco/service/medportal/autocomplete"
,
data: {
alf_ticket: alfresco.Ticket,
format:
"json"
}
}
}
}),
change:
function
() {
callbackToAlfresco();
}
});
***EDIT*** My Bad, needed to turn these on
severFiltering: true,
serverPaging: true,
(Also, the templates for some reason are not being applied if you notice)