This is a migrated thread and some comments may be shown as answers.

div hides when property gets updated using set method

1 Answer 46 Views
MVVM
This is a migrated thread and some comments may be shown as answers.
Neeraj
Top achievements
Rank 1
Veteran
Neeraj asked on 08 May 2018, 05:26 AM
Hello, I have  which is

var viewModel = kendo.observable({
        data: vmJson,
       selected:null
});

there is grid which is bind to viewModel.data and on there is  which executes code:

this.set("selected",e.data)

the "selected" is also to div which has and some grids in kendo template. Whenever update using 

this.selected.set("name",personname) 
 
1) on of above the selected Div which is  gets hidden. The div is inside kendo template and no visible binding are When execute $(div).show() in the div is seen and values are updated. There is something wrong in method of selected?

2) for nested set which one is right:
  this.selected.address.set("pin",pincode)
OR
this.selected.set("address.pin",pincode)










1 Answer, 1 is accepted

Sort by
0
Konstantin Dikov
Telerik team
answered on 09 May 2018, 10:27 AM
Hi Neeraj,

Could you please create a dojo example demonstrating the behavior, so we can test and debug it on our side:
Looking forward to your reply.


Regards,
Konstantin Dikov
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
MVVM
Asked by
Neeraj
Top achievements
Rank 1
Veteran
Answers by
Konstantin Dikov
Telerik team
Share this question
or