RadWindow Alert method

8 posts, 0 answers
  1. Michele
    Michele avatar
    11 posts
    Member since:
    May 2009

    Posted 03 Jun 2009 Link to this post

    Hi Telerik Team,

    I have a problem with alert dialog window.
    When I using alert dialog window with RadWindow static class, I see a little icon in the Title bar of this window (I suppose the default icon). Ther's the possibility to replace or remove this icon?

    Yhank you
    Michele
  2. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 04 Jun 2009 Link to this post

    Hi Michele,

    To change the Icon of the Alert Window, use the overload with the parameter with type DialogParameters. The DialogParameters class has a property IconContent. Unfortunately the default IconTemplate of the RadWindow control will not show the Icon. As a work-around you could handle the Opened event of the window and to set the IconTemplate property to null. You will not need this work-around after Q2 release, because this will be fixed.

    The following code demonstrates the idea:
    RadWindow.Alert(new DialogParameters() 
        Opened = (w, e) => 
            { 
                var wnd = w as RadWindow; 
                wnd.IconTemplate = null
            }, 
        IconContent = GetMyIcon() 
    }); 


    Regards,
    Miroslav Nedyalkov
    the Telerik team

    Instantly find answers to your questions on the newTelerik Support Portal.
    Check out the tipsfor optimizing your support resource searches.
  3. DevCraft banner
  4. Michele
    Michele avatar
    11 posts
    Member since:
    May 2009

    Posted 04 Jun 2009 Link to this post

    Thank's for your help Miroslav, everything works now.

    I'm waiting for Q2 version as soon as possibile.

    Michele
  5. Sreekanth Medisetty
    Sreekanth Medisetty avatar
    4 posts
    Member since:
    Jul 2009

    Posted 16 Oct 2009 Link to this post

    Hi,

    Can you please send the sample code.
    I am not able to implement this.

    Thanks,
    Sreekanth
  6. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 20 Oct 2009 Link to this post

    Hello Sreekanth,

    What do you need to implement? We will assist you, but first of all we need to know what is the goal.

    Regards,
    Miroslav Nedyalkov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  7. Satish J
    Satish J avatar
    52 posts
    Member since:
    Aug 2009

    Posted 08 Dec 2009 Link to this post

    Hi,

         Can you please post the code to set the IconContent property, to change the RadConfirm's icon ("?") to my own icon. Iam using Q3 2009 version.

     

    Thanks,

    Satish

  8. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 09 Dec 2009 Link to this post

    Hello All,

    Sreekanth, would mind to attach here the project I sent you in the support thread, as Satish needs the same things as you do and meets the same problems?

    Kind regards,
    Miroslav Nedyalkov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  9. Sreekanth Medisetty
    Sreekanth Medisetty avatar
    4 posts
    Member since:
    Jul 2009

    Posted 14 Dec 2009 Link to this post

    Hi,

    I am not using Rad window, instead i have created my own control where I can chnage the icons, buttons etc.

    Regards,
    Sreekanth
Back to Top
DevCraft banner