or
<
script
id
=
"MyCustomersTemplate"
type
=
"text/x-kendo-template"
>
<
a
href
=
"CustomerDetailView?ID=#= ID #"
>
<
div
style
=
"font-weight:bold;"
>#= Name #</
div
>
<
div
style
=
"font-weight:normal;font-size:smaller"
>#= City #, #= State #</
div
>
</
a
>
</
script
>
<
div
data-role
=
"view"
data-transition
=
"overlay"
data-title
=
"Customer Detail"
id
=
"CustomerDetailView"
data-show
=
"getCustomer"
>
<!-- What Do I put here ?? -->
</
div
>
function
getCustomer(e) {
var
wsParams = {
"ID"
: e.view.params.ID
};
var
dsCustomerDetail =
new
kendo.data.DataSource({
transport: {
read: {
type:
"POST"
,
contentType:
"application/json; charset=utf-8"
,
url: virtualDirectory +
"/CRM/GetClientInfo.asmx/Read"
,
dataType:
"json"
,
data: { callParams: wsParams }
},
parameterMap:
function
(options) {
return
kendo.stringify(options);
}
},
schema: {
data:
"d"
// How do I setup the Datasource to expose multiple collections (i.e Contacts and Sales) from this web service, without having to call it multiple times for each control databind?
}
});
// How do I now get this data onto the MobileView? Can I use a Template?
}
$(document).ready(function () {
$("#@(Model.DisplayNumber)").kendoNumericTextBox(
{min: @Model.RangeMin, max: @Model.RangeMax, format: "#", decimals: 0})
});
Ok I'll try a different question. When an object is retrieved back from the Datastore, you cannot change it ?
In other words the "numericTextBox" cannot be altered by .min= etc.. Or, do I have to save it back, Or I need to set the min and max in a different way.
Please let me know if I'm wasting more time and this just isn't possible yet, Or if it's coming and when it does it will be done a different way... anyone out there ?