Chrome 24.0.1312.57m
KendoUI 2012.3 1315
Using jQuery from KendoUI.
Note: I did not have this issue with previous versions of KendoUI from August/September.
I'm running into a situation where a serverPageable DataSource returns an empty result and still does infinite loops.
From the changelog:
JSON Data returned by server:
DataSource definition:
The issue is fixed if I pass a blank object into the data array to get this:
KendoUI 2012.3 1315
Using jQuery from KendoUI.
Note: I did not have this issue with previous versions of KendoUI from August/September.
I'm running into a situation where a serverPageable DataSource returns an empty result and still does infinite loops.
From the changelog:
- Fixed: Combobox falls into infinite loop if DataSource returns an empty result
JSON Data returned by server:
{ data: [], totalCount: 0 }
myDS =
new
kendo.data.DataSource({
type:
"json"
,
pageSize: 15,
serverPaging:
true
,
serverFiltering:
true
,
transport: {
read: {
type:
"GET"
,
dataType:
"json"
,
data: {
func:
"myfunc"
},
url:
"../myrest/"
}
},
schema: {
model: {
id:
"MY_ID"
,
fields: {
MY_ID: { type:
"string"
},
SHORT_DESCRIPTION: { type:
"string"
}
}
},
data:
function
(response) {
return
response.data;
},
total:
function
(response) {
return
response.totalCount;
}
}
});
{ data: [{}], totalCount: 0 }