Hello,
I have viewmodel that has a function save. and 2 external templates files
PricingViewModel = kendo.observable({
savePrice:
function
(e) {
debugger;
},
Item: {
Items: ModelData,
SavePricing:
function
(e){
}
});
The PricingViewModel is bind to external template . there is another template in which the data source is not part of this Modeldata. i have ajax function that calls data and binds to second template . second template has a button which i want onclick bind to savePrice () or SavePricing() , how can i do that?
i also tried kendo.bind() that didnt worked. It gets bind to normal javascript function outside viewmodel but in that i dont get e.data !!