Supplying a title in radalert

5 posts, 1 answers
  1. Dan
    Dan avatar
    739 posts
    Member since:
    Mar 2009

    Posted 30 Apr 2008 Link to this post

    You know what would be nice? To be able to specify a title for a radalert box without having to specify the window sizes.

      radalert("You are doing it wrong", "Warning");


    It'd be nice to just leave radalert to figure out the best size.

    Just a thought

    --
    Stuart
  2. Answer
    Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 30 Apr 2008 Link to this post

    Hi Stuart,

    You can do this by providing null for the width and the height arguments, e.g.
    radalert("message",nul,null,"title");


    I hope this helps.

    All the best,
    Georgi Tunev
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Dan
    Dan avatar
    739 posts
    Member since:
    Mar 2009

    Posted 30 Apr 2008 Link to this post

    Cheers Georgi

    --
    Stuart
  5. Elias
    Elias avatar
    12 posts
    Member since:
    Apr 2009

    Posted 03 Apr 2013 Link to this post

    What will be the script or command to change the titlebar icon?
  6. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3602 posts

    Posted 05 Apr 2013 Link to this post

    Hi Elias,

    There is no build-in parameter in the command to change the icon, yet you can use some JavaScript to change it after showing the alert by using RadWindow's client-side API:
    var oAlert = radalert("warning");
    oAlert.set_iconUrl("images/myIcon.jpg");



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