I am sure this is a dumb question but I have not been succesful in finding the answer. How do I get the value of a querystring example below im trying to get the querystring value from querystring parameter named ID and set it in the data part of my datasource. my data source works hard coded.
var
dsDetails = new kendo.data.DataSource({
group: { field:
"_Title", dir: "asc" },
transport: {
read: {
url:
"../api/EventDetails",
dataType:
"json",
data: {
ID:
"4dc2fa9a-fb45-4ff5-b6d8-c246dbd3024e";
}
}
}
},
schema: {
model: {
fields: {
_ID: { type:
"string" },
_BeginDate: { type:
"string" },
_Cost: { type:
"string" },
_EndDate: { type:
"string" },
_EndTime: { type:
"string" },
_EventType: { type:
"string" },
_StartTime: { type:
"string" },
_SupportedBy: { type:
"string" },
_Title: { type:
"string" }
}
}
},
});
ds.read();