Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at

  • Rihab 104 posts 388 karma points
    Dec 15, 2018 @ 08:43

    Show a confirmation message in the backoffice ApplicationEventHandler

    hello everyone,

    I need an urgent help,

    I'm trying to show the content editor a confirm message with 'yes' and 'cancel' options when deleting or Published events, I've tried "NotificationService" but I didn't know how to use it and I couldn't find an example on the internet.

    I've accomplished :

    e.Messages.Add(new EventMessage("My message title", "My message", EventMessageType.Error));

    but that is just a notification message.

    can anyone Help me?

  • Rihab 104 posts 388 karma points
    Dec 17, 2018 @ 06:30

    any idea ??

  • Søren Kottal 691 posts 4380 karma points MVP 5x c-trib
    Dec 17, 2018 @ 07:38
    Søren Kottal


    You need to use the notificationsService with Angular.

    Theres a blogpost showing most of what you need here:

  • Rihab 104 posts 388 karma points
    Dec 24, 2018 @ 09:06

    thank you for the replay Søren, I've read the article but I didn't figure out how to use the Angular notificationsService when all my code is written in C# in ApplicationEventHandler Published Event handler.

    any idea, I'm lost,

    thanks, Rihab.

  • Andy Robinson 9 posts 96 karma points c-trib
    Dec 24, 2018 @ 13:19
    Andy Robinson


    Its not possible to show the kind of alerts you are after in C#. the notificationService only shows 'advice' to the user, but no interactions.

    If you want to cutomises the UI of ther backoffice you will need to get your angular on. Give it a bash, its steep leaning curve for a backender but tus good fun!


Please Sign in or register to post replies

Write your reply to: