Hi - I have a Data Source defined for some fields on our webpage. The first time in, it reads the data just fine. Our users can select another value from a filter on the page, and when they click the an apply button, it should refresh the data, but it doesn't seem to do the read. I'm not getting any errors, it just isn't doing the second read.
Any ideas?
And to read it:
kdsStudentInformation.read();
thanks!
Any ideas?
kdsStudentInformation =
new
kendo.data.DataSource({
transport: {
//transport: defines the URL endpoints for remote data (read/insert/update/delete)
read:
function
(options) {
$.getJSON(Helpers.toServicesUrl(
"/GetctrlEWSStudentInfoPanel"
),
{
studentId: studentIDParm,
//935824
username: WSIPCContext.UserName,
schoolCode: schoolCodeParm,
schoolYear: schoolYearParm,
districtId: WSIPCContext.DistrictId
},
function
(data) {
stuInfox = data.GetctrlEWSStudentInfoPanelResult.RootResults;
kdsStudentInformation.data(stuInfox);
loadStudent();
}).fail(
function
(jqXHR) {
options.error(jqXHR);
});
}
//read
},
//transport
schema: {
//tells the Data Source where to find the result set
data:
"stuInfox"
}
});
And to read it:
kdsStudentInformation.read();
thanks!