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

Remove notification widget also eliminates the wrapper when used appendTo

3 Answers 60 Views
Notification
This is a migrated thread and some comments may be shown as answers.
Fernando
Top achievements
Rank 1
Fernando asked on 06 Oct 2014, 07:45 AM
When I'm using appendTo if i try to remove the widget instance to show just one notification at the same time the wrapper element is also removed.

example ('Static in the right panel', then 'Hide all notifications'): http://dojo.telerik.com/alOyo

3 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 06 Oct 2014, 01:08 PM
Hi Juan Jose,

You don't need to use .parent() in your scenario. The parent is needed only when using popup notificaitons, because in that case each notification container is wrapped inside a popup container.

Regards,
Dimo
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Fernando
Top achievements
Rank 1
answered on 06 Oct 2014, 02:10 PM
Hi Dimo,

To clarify, when I use appendTo I must use .getNotifications().remove()  but if I don't use appendTo I have to call the parent element this way: .getNotifications().parent().remove(). right?
0
Dimo
Telerik team
answered on 07 Oct 2014, 07:00 AM
Hi Juan Jose,

Yes, exactly.

Regards,
Dimo
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
Fernando
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Fernando
Top achievements
Rank 1
Share this question
or