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

Can there be a dynamic AppendTo?

1 Answer 94 Views
Notification
This is a migrated thread and some comments may be shown as answers.
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
sitefinitysteve asked on 08 Apr 2015, 01:29 PM

In my MVVM template each repeated data item has a div where I want notifications to appear.

 So do I have to make multiple kendoNotification objects for each repeater item, or can I just have one global one and set\change the appendTo object as needed?

 

Thoughts?

1 Answer, 1 is accepted

Sort by
0
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
answered on 08 Apr 2015, 01:36 PM

Got it to work

onSavePdrState: function (e) {
            var notificationZone = $(e.currentTarget).closest(".pod-wrapper").find(".notification");
            $notification.options.appendTo = notificationZone;
            $notification.show("Saved");
        },

Tags
Notification
Asked by
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
Answers by
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
Share this question
or