Last Updated: 18 Jan 2022 08:17 by ADMIN
Release R1 2021
Created on: 08 Feb 2015 19:23
Category: UI Framework
Type: Feature Request
ADD. New Control - Toast Notification

The Toast Notification is similar than the MessageBox, but not block the UI with an "always on top" dialog and dont have a dialogresult return value. This is only a text message, that shown, and hides after specified second. I can set the text, the background and foreground color, the container control and the alignment of the notification. I use this control to interact with the user, but not disturb his work. 

Example messages:
"The table saved successfully!"
"Refresh done."

The color can define also the type of the message:
Green -> OK
Red -> Error
Yellow ->Warning
Blue -> Information


Best Regards,

Attached Files:
Posted on: 16 Feb 2015 12:08
Thank you too. I got the idea and we will have this feedback in mind when we start working on this feature.
Posted on: 11 Feb 2015 08:38
Yes this is a perfect description.

Other possibilities can be:
- Multiple static methods, for example:
Toast.ShowInfo(RadGridView1,"message",Position.BottomCenter)    (automtaically lightblue back- and darkblue forecolor or similar)
Toast.ShowError(...)  (red for example)
Toast.ShowWarning(,,,)  (yellow for example)
Toast.ShowOk(...) (green for example)

Probably az overloaded version for exceptions:
Toast.ShowError(RadGridView1, < Byref ex As Exception >,Position.BottomCenter)  Shows the exception message automatically.

- Duration: can be an optional parameter with default value in milliseconds or seconds. 
Toast.Show(radPanel1, "text to be shown", Position.BottomCenter, yellowBackColor, redForeColor, 5) 
Show the notification for 5 seconds.

- CancelNotifications(Optional Byref containercontrol As Control = Nothing) method: Cancel programatically all notifications in the specified control. If Nothing, then cancel all notifications on the entire form. ( or the same behavior with Toast.Hide, Toast.HideAll)

- Possibility to set the Toast position with Padding or Location object for example:
Toast.Show(radPanel1, "text to be shown", New Point(30,30), yellowBackColor, redForeColor). 

- Icon: possibility to add a transparent icon or image before text, after text, above text or under text.

- Font: set the font of the toast message.

These things are only optional customizations, you describe the basic options very well!

Thank you!

Posted on: 11 Feb 2015 07:36
Thinking more about this, I can use your opinion a little more. 

So, you expect a static class Toast, with a static method Toast.Show. In the method, you will specify the container control and the text (Toast.Show(radPanel1, "text to be shown"). Position in the container, back and forecolor should be customizable as well. For positions I think top, middle bottom, and left, center, right should suffice - Toast.Show(radPanel1, "text to be shown", Position.BottomCenter, yellowBackColor, redForeColor)

How does this sound?
Posted on: 10 Feb 2015 15:13
Yes, I think something like android or wphone notification with the customizable functions. Thank you very much!
Posted on: 10 Feb 2015 14:57
I think I got the idea. Something like the notifications in android. I will approve this item and we will have it in mind in future. Make sure you cast your like for it.

I have updated your Telerik points( for this request.
Posted on: 10 Feb 2015 12:23
Yes, the Desktop Alert is similar, but the differences:
-	Desktop alert can align to screen, Toast can align inside a specified container control (in this case the user can see, where the message belongs)
-	Toast is much simpler, this is only a static (Shared) class (not need create new object instance, only one line, same way as MessageBox -> very fast to implement).
-	Toast size is automatic and minimal, that depends from the message content. The color is also automatic (but customizable), depends on the type of message.

This is an existing control by another 3rd party control vendor, that I use before I try Telerik. If it is approved I can send a link.
Posted on: 09 Feb 2015 09:33
Hi László, 

we already have something similar, it is called screen tip or desktop alert. See attached image and here is documentation how to put it in action: 

Is this what you are looking for?
Attached Files: