Notification bug?

7 posts, 0 answers
  1. Fit2Page
    Fit2Page avatar
    345 posts
    Member since:
    Feb 2007

    Posted 19 Jul 2011 Link to this post

    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

  2. Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts

    Posted 19 Jul 2011 Link to this post

    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!

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Shimon Cherny
    Shimon Cherny avatar
    1 posts
    Member since:
    Mar 2010

    Posted 24 Jul 2011 Link to this post

    Hello,

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

    Thanks,
    Shimon
  5. Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts

    Posted 25 Jul 2011 Link to this post

    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!

  6. Sean
    Sean avatar
    200 posts
    Member since:
    Nov 2010

    Posted 07 Sep 2011 Link to this post

    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?
  7. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3596 posts

    Posted 08 Sep 2011 Link to this post

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

  8. Sean
    Sean avatar
    200 posts
    Member since:
    Nov 2010

    Posted 08 Sep 2011 Link to this post

    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
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017