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

Is this a good fit for the Notification control

2 Answers 38 Views
Notification
This is a migrated thread and some comments may be shown as answers.
MArkB
Top achievements
Rank 1
MArkB asked on 10 Jun 2013, 07:12 PM
Hi,

What I'm asking is the Notification control is a good fit for the scenario I'm describing below.

What I want to do is to notify users of changes and scheduled work to the system. I want to have a control, like a small icon, to indicate when the user has pending messages. That is except when the message is a high priority in which case I want the message to show up.

Also, as each message is viewed the user gets the chance to acknowledge the notification so it won't be seen again. That acknowledgement is stored in the DB and prevents the message from showing up again. (This acknowledgement part seems to be the most difficult to me.)

I can do it as a service or directly to the DB in the application. I'd like to put the thing together as a user control so it can be utilized in different applications with minimal coding.

You know, It thought it was a complex scenario and would take a lot of writeup.

Thanks,

MArk B.

2 Answers, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 12 Jun 2013, 08:46 AM
Hello Mark,

You can use the Page_Load event of the user control where the RadNotification is to check your database. If there are messages the user needs to see - Show() the notification from the code-behind: http://demos.telerik.com/aspnet-ajax/notification/examples/servershowwithnewtext/defaultcs.aspx. If you only need to show a simple string the Show(newText) overload will make the job simple. Otherwise add the desired button and checkbox in the ContentTemplate of the control together with a label or literal where the message will be shown. You can check for the value of this checkbox in the Page_Load event again. If it is checked - store the user preference in your database so no further notifications will come up (so this piece of code should come before the check whether Show() needs to be called). After that you can also set the Visible property of the notification to false to effectively remove the control.


Regards,
Marin Bratanov
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
0
MArkB
Top achievements
Rank 1
answered on 24 Jun 2013, 08:01 PM
Marin,

Thanks for that response. It's exactly what I was looking for. I can eventually hack my way through anything but it helps so much to have not have to question the direction I'm going in. Your response totally fit that bill.

MArk B.
Tags
Notification
Asked by
MArkB
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
MArkB
Top achievements
Rank 1
Share this question
or