Is it possible to recreate Javascript alert with Notification?

13 posts, 0 answers
  1. Alejandro
    Alejandro avatar
    7 posts
    Member since:
    May 2011

    Posted 13 Jul 2011 Link to this post

    First of all I've gotta say that this control is awesome, thank you guys for delivering such useful stuff.

    I'm wondering if there might be some way to replicate either javascript alert or radwindow radconfirm() functionality with this control, I mean, I want to block all background form until user click button inside the notification.

    Any suggestions??

    Kind regards.


    Alex
  2. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3600 posts

    Posted 14 Jul 2011 Link to this post

    Hello Alex,

    Thank you for the nice words :)

    As for blocking the screen - this is not the intended purpose of this control and I'm afraid it isn't possible. The closest you could get would be to have a notification that would require the user to close it manually (AutoCloseDelay="0" KeepOnMouseOver="true" ShowCloseButton="true" ) and attach a handler to the OnClientClose event or the button click.

    Please note that this is outside of the scope of this control, yet If more requests for a modal functionality arrive for the RadNotification we will create a public PITS item and if many votes are accumulated we will consider implementing this functionality.

    All the best,
    Marin
    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. Alejandro
    Alejandro avatar
    7 posts
    Member since:
    May 2011

    Posted 14 Jul 2011 Link to this post

    Marin.

    Thanks for your quick response, I thought you'd say that so I'm trying to implement desired behavior by other ways.

    I hope in the days to come for more users to request such functionality as I think may be very helpful to create custom notifications, confirmations, etc.

    Thanks again.


    Greetings from Mexico.



    Alex
  5. Colin
    Colin avatar
    9 posts
    Member since:
    Aug 2011

    Posted 28 Sep 2011 Link to this post

    I could really use modal functionality.
  6. Steve
    Steve avatar
    1851 posts
    Member since:
    Dec 2008

    Posted 01 Oct 2011 Link to this post

    +1 here too
  7. Vijayaraj
    Vijayaraj avatar
    25 posts
    Member since:
    Mar 2011

    Posted 05 Oct 2011 Link to this post

    +1 here too

    Regards,
    Vijay
  8. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3600 posts

    Posted 07 Oct 2011 Link to this post

    Hi guys,

    Thank you for your feedback. We have logged this feature and we will consider implementing it for a future release, but I am sorry to say that for the time being this is not in our plans.

    What you can do is create a simple div element with the desired color and opacity, then change its CSS display property in the OnClientShow and OnClientHide events of the RadNotification. A simple example is attached. Please note that the height and padding styles applied to the html, body and form elements. Their purpose is to make sure that the 100% size of the div covers the entire screen.

    This has also been added in the Knowledge base in the following link: http://www.telerik.com/support/kb/aspnet-ajax/notification/how-to-make-a-modal-radnotification.aspx.


    Kind regards,
    Marin
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
  9. Vijayaraj
    Vijayaraj avatar
    25 posts
    Member since:
    Mar 2011

    Posted 07 Oct 2011 Link to this post

    Thanks, it works great.


    Regards,
    Vijay
  10. Vijayaraj
    Vijayaraj avatar
    25 posts
    Member since:
    Mar 2011

    Posted 07 Oct 2011 Link to this post

    Hi,

    This works really cool. 

    I wish to use this as a confirmation dialog, is there a way to return values on which button is selected from the notification control?

    Thanks in advance.

    Regards,
    Vijay 
  11. Alejandro
    Alejandro avatar
    7 posts
    Member since:
    May 2011

    Posted 07 Oct 2011 Link to this post

    I accomplished that scenario by adding RadButtons to RadNotification Template, then I used OnButtonClicked Event and worked just fine.

    Hope it helps.

    Regards,

    Alex
  12. Vijayaraj
    Vijayaraj avatar
    25 posts
    Member since:
    Mar 2011

    Posted 07 Oct 2011 Link to this post

    Thanks Alex, even I did the same.
    But I wanted to confirm if there is any other better way to do so.

    Regards,
    Vijay
  13. SteveV
    SteveV avatar
    8 posts
    Member since:
    Nov 2011

    Posted 10 Dec 2011 Link to this post

    The sample mostly does the trick but the overlay div doesn't cover all of the content, it only extends the hieght of the browser client area.  So when the browser window is scrolled vertically the overlay doesn't cover the scrolled area (see attached image).  I've tried a number of css workarounds to try to fix this but nothing made much of a difference. 

    Any suggestions?

    Thanks--Steve
  14. SteveV
    SteveV avatar
    8 posts
    Member since:
    Nov 2011

    Posted 11 Dec 2011 Link to this post

    Nevermind.  Embarassingly, my problem was a typo in my css.  Working fine now.

    --Steve
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017