When I try to fille a Notification instance from javascript like:
<
script
language
=
"javascript"
>
function limiter(){
var tooltip = $find("<%=RadNotification1.ClientID%>");
tooltip.set_title("title text");
tooltip.set_text("notification text");
tooltip.show();
}
</
script
>
<
a
href
=
"#"
onclick
=
"limiter();"
>do it</
a
>
<
telerik:RadNotification
ID
=
"RadNotification1"
Skin
=
"Sunset"
runat
=
"server"
Height
=
"100"
Width
=
"300"
Animation
=
"Fade"
EnableRoundedCorners
=
"true"
EnableShadow
=
"true"
OffsetX
=
"-20"
OffsetY
=
"-20"
ContentIcon
=
"none"
></
telerik:RadNotification
>
Is this a bug?
BR,
Marc
6 Answers, 1 is accepted
Thank you for your report, indeed, there was a bug caused by a typo in the source code. The good news is that it is already fixed and the fix will be available in the latest internal build which will be available until tomorrow.
Best wishes,
the Telerik team
Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!
I need this hot fix as well.
Where from i can download it?
Thanks,
Shimon
You can download the latest internal build from the following location, after you have logged in your Telerik account:
https://www.telerik.com/login.aspx?ReturnUrl=%2faccount%2fyour-products%2finternal-builds.aspx
More information about latest internal build in general is available in the following blog post:
http://blogs.telerik.com/blogs/posts/09-01-07/download_latest_internal_builds.aspx
Svetlina
the Telerik team
Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!
I am currently using Telerik.Web.UI Version 2011.2.906.35 -- I just grabbed it off the latest internal builds.
<
telerik:RadNotification
ID
=
"RadNotification1"
Runat
=
"Server"
Skin
=
"Web20"
Height
=
"120px"
Width
=
"250px"
>
</
telerik:RadNotification
>
var
radNotification = $find(radNotificationID);
radNotification.set_text(
"Dashboard saved successfully."
);
radNotification.set_title(
"Test"
);
alert(radNotification.get_text());
radNotification.update();
setTimeout(
function
() {
radNotification.show();
}, 0);
This is what I was using to try and set the appropriate fields. I am able to see the title set to "Test", but I do not see the text set. Yet, the alert DOES display "Dashboard saved successfully." so I believe that the property has been set successfully and is just not being rendered?
Thoughts?
This issue stems from the fact that you call the RadNotification's update() method. You have not defined any webservice or callback settings and therefore the update does not return any text (i.e. an empty string) and it is set to the notification after the callback that it performs. You should not call update() in such a scenario.
Once I removed the unnecessary call to the update() method things work as expected on my end: http://screencast.com/t/kspWmtNgpSl.
All the best,
Marin
the Telerik team
Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>
Thanks again. Sean