div hides when property gets updated using set method

2 posts, 0 answers
  1. Neeraj
    Neeraj avatar
    135 posts
    Member since:
    May 2015

    Posted 08 May 2018 Link to this post

    Hello, I have viewModel which is observable .

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

    there is mvvm grid which is bind to viewModel.data and on click there is function which executes below code:

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

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

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

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










  2. Konstantin Dikov
    Admin
    Konstantin Dikov avatar
    2466 posts

    Posted 09 May 2018 Link to this post

    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.
Back to Top