1 more question:
this is all coded in mvvm.I have list of priceitem and on selection of priceItem i am binding to PriceDetailTemplate. This PriceDetailTemplate template has some sumeric textbox and also contains 4 buttons and on click of 4 button ,it opens window and all 4 window has different Grids with different data in them specific to Grid.
When i bound data to all windows and Grids first time , it works well and when i bind second item , the window grid shows data of first item (data which was of 1st item ), i think it may be due to grid creates copy of local data when it forms.
what is the best way to update data of 2nd item selected .
Further more to Save details, i am sending ajax call to C# controller which return object with Id and i update with following statement.
// ImportPNRPricingViewModel is observable object , Tsts is the Item that can be selected which will be bind to PriceDetailsTemplate
//response is success response from ajax
var
observableResponse = kendo.observable(response);
var
temp2 = $.extend(
true
, ImportPNRPricingViewModel.Tsts._data[index], observableResponse);
//this line update details
I tried to use destroy() method of kendo and jquery remove() to remove element from DOM , but doesnt work well. It may take time to create sample since process is long. If you can understand my explaination well and good. In short just tell me how to show 2nd selected Item data in that Grid inside kendoWindow which is showing 1st item data