Shading area behind modal window

8 posts, 0 answers
  1. Jack
    Jack avatar
    45 posts
    Member since:
    Feb 2009

    Posted 12 Apr 2009 Link to this post

    I saw a great feature in~26nbsp~3b~3ca href~3d~22http~3a//www.divil.co.uk/net/controls/sanddocksl/livedemofullscreen.htm~22~3eDivElement~27s SandDock Component~3c/a~3e in that when you pop open a modal window you have the ability to set the shading of the background outside the modal window.~26nbsp~3b This effect makes it very clear that you are using a modal window.~3cbr /~3e ~3cbr /~3e Any suggestions on how to simulate that using RadWindow~3f~26nbsp~3b Any way this could be added to a feature list~3f~3cbr /~3e ~3cbr /~3e Thanks~3cbr /~3e ~3cbr /~3e jack~3cbr /~3e
  2. Hristo Borisov
    Admin
    Hristo Borisov avatar
    298 posts

    Posted 13 Apr 2009 Link to this post

    Hello Jack,

    If you are looking for a property that changes the modal background, you can simply use the ModalBackground property of RadWindow. Just make sure you open the RadWindow as modal dialog by calling the ShowDialog method. If this is not what you are looking for, or in case you need some custom scenario, please feel free to share it with us.

    Regards,
    Hristo Borisov
    the Telerik team

    Check out Telerik Trainer , the state of the art learning tool for Telerik products.
  3. DevCraft banner
  4. Jack
    Jack avatar
    45 posts
    Member since:
    Feb 2009

    Posted 13 Apr 2009 Link to this post

    Hristo,

    I don't want the Modal Background - I want to shade everything but the window I pop open so it stands out like a sore thumb.  It looks like FireFox butchered my forum posting... I'll try again with the URL that has the example - open the Modal Dialog option

    www.divil.co.uk/net/controls/sanddocksl/livedemofullscreen.htm
     


    Any idea how to stop Firefox from messing up forum posts?

    thanks

    jack
  5. Rosi
    Admin
    Rosi avatar
    2527 posts

    Posted 15 Apr 2009 Link to this post

    Hello Jack,

    Please take a look at our online example -Configurator and click the Open Modal button. This example illustrates the desired behavior.

    As for the FireFox problem - it looks like that you  use FireFox 3.1 beta version which has some issues related with javascript. That is the reason why the forum messages are not saved. We hope that these problems will be fixed when FireFox 3.1 is official released.

    Hope this helps.

    Regards,
    Rosi
    the Telerik team

    Check out Telerik Trainer , the state of the art learning tool for Telerik products.
  6. Jack
    Jack avatar
    45 posts
    Member since:
    Feb 2009

    Posted 17 Apr 2009 Link to this post

    That is what I was hoping to do.  Is that a configurable option?  I did a peek at the code and didn't see anything set.  Is that a default behaviour

    Also thanks for the tip on the browser...  I thought their javascript issues were fixed in beta 3.  Apparently not.

    thanks
    jack
  7. Hristo Borisov
    Admin
    Hristo Borisov avatar
    298 posts

    Posted 20 Apr 2009 Link to this post

    Hi Jack,

    As I mentioned before the difference is in the way you open the RadWindow. To popup the control without shading area you should use the Show() method, to open it as a modal dialog you should call the ShowDialog() method of the control. I hope this will resolve your issue.

    Regards,
    Hristo Borisov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  8. Jack
    Jack avatar
    45 posts
    Member since:
    Feb 2009

    Posted 20 Apr 2009 Link to this post

    Hristo,

    I understand how to open modal vs. nonmodal.  I was asking if you can configure the background shading.  For example say I wanted it to be grey vs. blue or orange?

    Thanks

    jack
  9. Boyan
    Admin
    Boyan avatar
    758 posts

    Posted 28 Apr 2009 Link to this post

    Hello Jack,

     Sorry for the late reply. You can use the ModalBackground property and set a color to your liking. You can also set Opacity if you do it from code. It will look like this:
    window1.ShowDialog(); 
                Color myColor = Color.FromArgb(255, 255, 255, 0); 
                SolidColorBrush myBrush = new SolidColorBrush(); 
                myBrush.Color = myColor; 
                SolidColorBrush solid = new SolidColorBrush(myColor); 
                solid.Opacity = 0.5; 
                window1.ModalBackground = solid; 

      I hope that helps! Please, tell me if you need further assistance.

    Regards,
    Boyan
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top
DevCraft banner