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

Notification Widget Template MVVM Binding fails

2 Answers 62 Views
Notification
This is a migrated thread and some comments may be shown as answers.
Shankar
Top achievements
Rank 1
Shankar asked on 31 Oct 2014, 10:44 AM

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 Answers, 1 is accepted

Sort by
0
Shankar
Top achievements
Rank 1
answered on 31 Oct 2014, 12:12 PM
Hi,
Have updated the sample code file containing some typos.

Pls find attached the revised sample code file.

Regards

Balachander
0
Daniel
Telerik team
answered on 04 Nov 2014, 09:22 AM
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!
 
Tags
Notification
Asked by
Shankar
Top achievements
Rank 1
Answers by
Shankar
Top achievements
Rank 1
Daniel
Telerik team
Share this question
or