I'd like my "data" to be sending some of my MVVM model properties in the callback...
Example:
So I have a searchbox which is bound to $dataSource.read(); ...but regardless of the method I'm using (sync, fetch, read) that "data" never seems to be re-called. Well...I mean I can't say that it's not working, maybe it is, and it's returning "", although I've valdiated my model has data in "searchterm"
Thoughts?
Example:
transport: {
read: {
url:
"/RestApi/directory?format=json"
,
dataType:
"json"
,
data: {
search: $model.get(
"searchterm"
)
}
}
},
So I have a searchbox which is bound to $dataSource.read(); ...but regardless of the method I'm using (sync, fetch, read) that "data" never seems to be re-called. Well...I mean I can't say that it's not working, maybe it is, and it's returning "", although I've valdiated my model has data in "searchterm"
Thoughts?