Make Window as Readonly

6 posts, 0 answers
  1. Bichitra
    Bichitra avatar
    34 posts
    Member since:
    Aug 2008

    Posted 24 Dec 2008 Link to this post

    Hi,

    In my application, If i have opened number of  RadWindows. I need to make all redaonly as Rad showdialog working, I mean as RadWindow opened as Dialog all screen becomes as readonly. I want to make all window readonly user connot do anything unless the process completed. (I want to show some wait cursor/ Image).

    Can you suggest,Please?
    Thanks
    Bichitra
  2. Konstantin Petkov
    Admin
    Konstantin Petkov avatar
    1911 posts

    Posted 26 Dec 2008 Link to this post

    Hi Bichitra,

    Do you need the "modal"/"dialog" state of the Window? You can use the ShowDialog() RadWindow method as described in the online docs here:

    http://www.telerik.com/help/silverlight/radwindow-using-radwindow-as-a-dialog.html

    I suggest you play with the RadWindow live Configurator as well:

    http://demos.telerik.com/silverlight/#Window/Configurator

    Just click "Open Dialog" button to display the Window with disabled background.

    All the best,
    Konstantin Petkov
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. Bichitra
    Bichitra avatar
    34 posts
    Member since:
    Aug 2008

    Posted 27 Dec 2008 Link to this post

    Thanks  for reply..

    I know using RadWindow as dialog.. But i donn't want to show  Dialog.  Is there any  way I can freeze only single RadWindow not whole application.(if number of Radwindow is opended). I need  the way  you are Freezing the whole application when RadWindow shows as popup dialog. So i can freeze one window instead of whole application.

    Thanks
    Bichitra

  4. Hristo Borisov
    Admin
    Hristo Borisov avatar
    298 posts

    Posted 29 Dec 2008 Link to this post

    Hi Bichitra,

    As far as I understood your question you would like to have a disabled state of radwindow which locks the content of RadWindow and looks like the modal background of dialog window. We haven't thought of this feature, but it seems quite reasonable. If you use the IsEnabled property upon RadWindow, you will achieve the same effect, but in this case you won't be able to move or do anything with this RadWindow. That is why, you can do the following:

    First use a panel to wrap the content of RadWindow like this:

    1 <RadWindow x:Name="window">  
    2       <Grid> 
    3           <Button Content="Button"/>  
    4       </Grid> 
    5 <RadWindow> 

    Then you should use a canvas which will serve as the inner modal background of your RadWindow like this:

    1 Panel content = (Panel)window.Content;  
    2 Canvas modalCanvas = new Canvas();  
    3  
    4 modalCanvas.Background = new SolidColorBrush(Colors.Red);  
    5 modalCanvas.Opacity = 0.3;  
    6  
    7 content.Children.Add(modalCanvas);  
    8  
    9 window.Content = content;  
    10             
    11 window.Show(); 

    After executing this code you should have RadWindow which contains a single button wrapped by Red canvas with opacity 30% that prevents the button from clicking. Please tell us whether this will solve your problem, and whether you think that such feature should be useful if integrated in RadWindow. Thank you for suggesting such features, your telerik points have been updated.

    Regards,
    Hristo Borisov
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  5. Bichitra
    Bichitra avatar
    34 posts
    Member since:
    Aug 2008

    Posted 29 Dec 2008 Link to this post

    Hi  Borisov,

    Thanks for reply. I will try. But If you can give this feature for Rad window  like Dev asp.net component(wait message or hour glass cursor or any image),  if i click on button  so  that i can call a method or property for wait message and as soon as my task is completed ,i can set it as nothing or mouse normal mode so that user can do next action . it will help for us.

    Thanks
    Bichitra
  6. Hristo Borisov
    Admin
    Hristo Borisov avatar
    298 posts

    Posted 30 Dec 2008 Link to this post

    Hello Bichitra,

    Would you send us a link in which we can experience the feature you are talking about, because it's somewhat tricky to grasp such a process without using the window itself.

    Greetings,
    Hristo Borisov
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top