This question is locked. New answers and comments are not allowed.
Hello,
Based on the window APP model given below, I would like to get the value of searchContacts in my read function. Could someone possibly point out to me on how I can achieve that?
(
function
() {
// store a reference to the application object that will be created
// later on so that we can use it if need be
//var app;
// create an object to store the models for each view
window.APP = {
models: {
home: {
title:
'Home'
},
settings: {
title:
'Settings'
},
contacts: {
model: {
searchContacts:
''
// How can I get this value in the read function(options) area
},
title:
'Contacts'
,
ds:
new
kendo.data.DataSource({
transport: {
read:
function
(options) {
// implement the datasource here
// how can I get the value of searchContacts from my model?
var
searchCont = $(
"#searchContacts"
).val();
// Any other way?
....
}}}); }}));
Cheers.
Best Regards,
IK