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

Notification bug?

6 Answers 180 Views
Notification
This is a migrated thread and some comments may be shown as answers.
Fit2Page
Top achievements
Rank 2
Iron
Iron
Iron
Fit2Page asked on 19 Jul 2011, 02:30 PM
Hi,

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>
it is setting the title text but NOT the notifier text.

Is this a bug?

BR,
Marc

6 Answers, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 19 Jul 2011, 02:47 PM
Hi Fit2page,

 
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,

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!

0
Shimon Cherny
Top achievements
Rank 1
answered on 24 Jul 2011, 02:09 PM
Hello,

I need this hot fix as well.
Where from i can download it?

Thanks,
Shimon
0
Svetlina Anati
Telerik team
answered on 25 Jul 2011, 09:06 AM
Hi 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

Greetings,
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!

0
Sean
Top achievements
Rank 2
answered on 07 Sep 2011, 06:09 PM
Hi Telerik,

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?
0
Marin Bratanov
Telerik team
answered on 08 Sep 2011, 04:13 PM
Hello Sean,

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 >>

0
Sean
Top achievements
Rank 2
answered on 08 Sep 2011, 05:42 PM
Ahh, gotcha. Thank you! I thought the control worked more like client-side RadListBox where you had to start/commit changes.. possibly needed to call update. Not sure why I didn't try removing it!

Thanks again. Sean
Tags
Notification
Asked by
Fit2Page
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Svetlina Anati
Telerik team
Shimon Cherny
Top achievements
Rank 1
Sean
Top achievements
Rank 2
Marin Bratanov
Telerik team
Share this question
or