Notification Widget Template MVVM Binding fails

3 posts, 0 answers
  1. Shankar
    Shankar avatar
    3 posts
    Member since:
    Sep 2007

    Posted 31 Oct 2014 Link to this post

    Hi ,

    I have a List View which I would like to show on the notification widget using a template.

    The notification widget template does not seem to support MVVM binding.

    Have attached a sample code showing
              List View being displayed bound to a template using MVVM
              Notification widget being shown binding a simple text
              Notification widget being shown using the List Template ( This Fails)


    Please see attached file for code

    Regards

    Balachander


       

  2. Shankar
    Shankar avatar
    3 posts
    Member since:
    Sep 2007

    Posted 31 Oct 2014 in reply to Shankar Link to this post

    Hi,
    Have updated the sample code file containing some typos.

    Pls find attached the revised sample code file.

    Regards

    Balachander
  3. Kendo UI is VS 2017 Ready
  4. Daniel
    Admin
    Daniel avatar
    2117 posts

    Posted 04 Nov 2014 Link to this post

    Hello Balachander,

    Indeed, the notification will not bind the content by default. You could bind the element after showing the notification that needs to be bound e.g.
    notificationWidget.show(viewModel, "myListAlert");
    kendo.bind($("#notificationListView"), viewModel);


    Regards,
    Daniel
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
Back to Top