This is a migrated thread and some comments may be shown as answers.

Make Window as Readonly

5 Answers 96 Views
Window
This is a migrated thread and some comments may be shown as answers.
Bichitra
Top achievements
Rank 1
Bichitra asked on 25 Dec 2008, 05:44 AM
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

5 Answers, 1 is accepted

Sort by
0
Konstantin Petkov
Telerik team
answered on 26 Dec 2008, 08:27 AM
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.
0
Bichitra
Top achievements
Rank 1
answered on 28 Dec 2008, 02:04 AM
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

0
Hristo Borisov
Telerik team
answered on 29 Dec 2008, 08:22 AM
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:

<RadWindow x:Name="window">  
      <Grid> 
          <Button Content="Button"/>  
      </Grid> 
<RadWindow> 

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

Panel content = (Panel)window.Content;  
Canvas modalCanvas = new Canvas();  
 
modalCanvas.Background = new SolidColorBrush(Colors.Red);  
modalCanvas.Opacity = 0.3;  
 
content.Children.Add(modalCanvas);  
 
window.Content = content;  
            
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.
0
Bichitra
Top achievements
Rank 1
answered on 30 Dec 2008, 12:46 AM
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
0
Hristo Borisov
Telerik team
answered on 30 Dec 2008, 07:32 AM
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.
Tags
Window
Asked by
Bichitra
Top achievements
Rank 1
Answers by
Konstantin Petkov
Telerik team
Bichitra
Top achievements
Rank 1
Hristo Borisov
Telerik team
Share this question
or