Hi forum.
I'm trying to use the radnotification to be used as a note. In my page i have a radbutton and every time someone clicks it i want for a new radnotification to be created. I also would like to make it able for the user change the position of the radnotification by mouse using drag, I don't know if it is possible. My problems are that, i can only create one radnotification at a time, if i have one created and i hit the radbutton again the first radnotification dissapears and the new one appears, is it not possible to create a sort of notoficationfactory?.
Here goes my code:
I'm trying to use the radnotification to be used as a note. In my page i have a radbutton and every time someone clicks it i want for a new radnotification to be created. I also would like to make it able for the user change the position of the radnotification by mouse using drag, I don't know if it is possible. My problems are that, i can only create one radnotification at a time, if i have one created and i hit the radbutton again the first radnotification dissapears and the new one appears, is it not possible to create a sort of notoficationfactory?.
Here goes my code:
Private
Const
width
As
Integer
= 300
Private
Const
height
As
Integer
= 100
Dim
number
As
Integer
= 0
Protected
Sub
RadButton1_Click(
ByVal
sender
As
Object
,
ByVal
e
As
System.EventArgs)
Handles
RadButton1.Click
Dim
text
As
RadTextBox =
New
RadTextBox()
text.Width = Unit.Pixel(200)
Dim
note
As
RadNotification =
New
RadNotification()
note.Width = Unit.Pixel(width)
note.Height = Unit.Pixel(height)
note.AutoCloseDelay = 0
note.Pinned =
False
note.Position = NotificationPosition.Center
note.ShowCloseButton =
True
note.ContentIcon =
Nothing
note.TitleIcon =
Nothing
note.ID =
"RadNotification"
& number
form1.Controls.Add(note)
note.Show()
End
Sub