Telerik Forums
UI for Silverlight Forum
4 answers
223 views

The following code produces a confirm Window but it displays the control object type name and not what I assigned to the DialogParameters

Resulting text in Confirm Window:

"Telerik.Windows.Controls.DialogParameters"

Here is my code:

            Dim rWParameters As New Telerik.Windows.Controls.DialogParameters
                    With rWParameters

                        .Header = "CONFIRMATION"
                        .Content = "My message to confirm action"
                        .OkButtonContent = "Yes"
                        .CancelButtonContent = "No"
                    End With

            RadWindow.Confirm(rWParameters, AddressOf ShowConfirmationOnClosed)

 

    Private Sub ShowConfirmationOnClosed(sender As Object, e As WindowClosedEventArgs)

        Try

            If e.PromptResult = "Yes" Then
                DoSomething()
            End If

        Catch ex As Exception

            Dim Problem As New Errors(ex)

        End Try

    End Sub

If I do NOT use DialogParameters and just do this:

    RadWindow.Confirm("My message to confirm action", AddressOf ShowConfirmationOnClosed)

I see the confirm Window with correct message. 

So it looks like RadWindow.Confirm doesn't accept DialogParameters even though the sample in your documentation indicates it does or should.

I'm using version 2016.1.112.1050 of Telerik.Windows.Controls ... I realize there is a more recent version, but no indication it fixes a problem with RadWindow.Confirm.

Help needed ASAP, please.

Cheers, Rob.

Dinko | Tech Support Engineer
Telerik team
 answered on 26 Dec 2019
11 answers
347 views
HI,

    In silverlight main page i am having button.If i click button it will open a radwindow. It is opening properly.In that radwindow i am having an image. If user single clicks or double clicks a image it has open a another radwindow.

   In imageMouseLeftButton_Down event i have written code like this

  

Private

 

 

Sub moPART_AnswerImage_MouseLeftButtonDown(ByVal sender As Object, ByVal e As System.Windows.Input.MouseButtonEventArgs) Handles moPART_AnswerImage.MouseLeftButtonDown

 

     Dim oImageViewer As New Radwindow2
     oImageViewer.ShowDialog()

 


End
Sub

Find below is the xaml for Radwindow2

 

<tkNavigation:RadWindow  

   x:Class="RAMWare.Controls.dlg_PhotoViewer"

  xmlns=http://schemas.microsoft.com/winfx/2006/xaml/presentation

  xmlns:x=http://schemas.microsoft.com/winfx/2006/xaml

  xmlns:msControls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"

  xmlns:tkNavigation="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation"

  xmlns:tkControls="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls"

  Height="Auto"

  Width="Auto"

  WindowStartupLocation="CenterScreen"

  HorizontalAlignment="Center"

  VerticalAlignment="Center">

  

<Grid x:Name="LayoutRoot" Margin="1">
<Grid.RowDefinitions>

   <RowDefinition Height="Auto" /> 
  <RowDefinition Height="Auto" />

 </Grid.RowDefinitions>

 <StackPanel Orientation="Vertical">
         <Image x:Name="imgPhoto" Height="Auto" Width="Auto" Stretch="Uniform" />
<StackPanel Orientation="Vertical" VerticalAlignment="Bottom">
 <StackPanel Width="Auto" Orientation="Horizontal" HorizontalAlignment="Center" Grid.Row="1">

 <Button  

x:Name="cmdRotateCounterClockwise"
Content="RotateCounterClockwise"
Width="Auto"
Height="23"
HorizontalAlignment="Left" />

 <Button
    x:Name="cmdOK" 

    Content="OK"

        Width="75"

        Height="23"

        HorizontalAlignment="Center" />

 <Button

 x:Name="cmdRotateClockwise"

 Content="RotateClockwise"

 Width="Auto"

 Height="23"

 HorizontalAlignment="Right" />

 </StackPanel>
<TextBlock

 x:Name="tblError"></TextBlock>

 </StackPanel>

 </StackPanel>

 </Grid> </tkNavigation:RadWindow>

 
If user single click a image present in Radwindow1 it has to open Radwindow2.If user double cliks of a image present in Radwindow1 also opens a Radwindow2.But user double clicks a image, radwindow2 is opening behind Radwindow1 that is parent window.
How to solve the problem?

Dinko | Tech Support Engineer
Telerik team
 answered on 26 Dec 2019
4 answers
155 views
I want to have a Rad Window inside a container control.. meaning it can be moved around within the area of the content control.
I tried setting the RadWindow.Owner property to my content control but it is not working.
Any ideas?
Matt
Top achievements
Rank 1
 answered on 17 Apr 2018
3 answers
231 views
Hi,

I've got a public static RadWindow that I use globally throughout my application.  I have several usercontrols of varying sizes that I load via this RadWindow by setting them to be the RadWindow's content and then running the RadWindow's ShowDialog method.  The RadWindow seems to have a maximum width and height that I didn't set, which has the effect of cutting off parts of my larger controls.  If I use the Microsoft ChildWindow it resizes correctly so I assume its a problem with RadWindow and not my controls.  I am using the internal build 2010.3.1331.   Is this a bug? 

If I resize the window for the larger controls it stays large when the smaller controls are the RadWindow's content.

Please advise.
Dinko | Tech Support Engineer
Telerik team
 answered on 25 Jul 2017
3 answers
124 views

Im wanting to use the RadWindow.Confirm control to show lots of text on the screen.

However, showing a lot of information means that the RadWindow will take up the whole screen which hides the buttons required for closing the RadWindow.

 

To get around this, i added a ScrollViewer with a max height which creates a scrollbar when needed.

This worked perfectly for RadWindow.Alert, but for some reason, the exact same thing is not working for RadWindow.Confirm.

 

For the alert, i have done the following 

var message = new TextBlock
        {
            Text = alertMessage,
            TextWrapping = TextWrapping.Wrap,
            Width = 400,
        };
 
var sv = new ScrollViewer
{
    Content = message,
    VerticalScrollBarVisibility = ScrollBarVisibility.Auto,
    MaxHeight = 600,
    BorderThickness = new Thickness(0)
};
 
RadWindow.Alert(
    new DialogParameters
    {
        Header = header,
        Content = sv,
    });

 

For the RadWindow.Confirm, i do the following

var message = new TextBlock
{
    Text = confirmMessage,
    TextWrapping = TextWrapping.Wrap,
    Width = 400,
};
 
var sv = new ScrollViewer
{
    Content = message,
    VerticalScrollBarVisibility = ScrollBarVisibility.Auto,
    MaxHeight = 600,
    BorderThickness = new Thickness(0)
};
 
RadWindow.Confirm(
    new DialogParameters
    {
        Header = header,
        Content = sv,
        Closed = (s, args) =>
        {
            if (args.DialogResult.Value)
            {
                if (ConfirmMessageEventArgs != null)
                {
                    ConfirmMessageEventArgs(confirmType, new WindowClosedEventArgs());
                }
            }
        }
    });

It is exactly the same as the alert window except it uses the Confirm method instead of Alert.

 

When i run this, the screen always shows up blank with nothing on it.

 

Is there any way to get the text to show?

Polya
Telerik team
 answered on 01 Jul 2016
3 answers
79 views
How to configure localization text to RadWindow buttons Minimize, Maximiza and Close ?
Yana
Telerik team
 answered on 28 Mar 2016
1 answer
26 views

Hi,

I am new to telerik. I am doing a web automation now. In the web page there is a browse button, when I click it, a pop-up window appears. After that code is getting stopped. I am not able to proceed further. Actually I want to give a path in that pop-up window that appears, but I am not able to.

Could you please help me to solve this issue.

Thanks in advance :)

Elena
Telerik team
 answered on 24 Mar 2016
8 answers
118 views
The RadWindow.ResizeMode is an enumeration which contains (CanMinimize | CanResize | NoResize).  The problem with overloading these UI aspects into a singular mutually exclusive property is that CanMinimize and CanResize are actually independent aspects of a dialog window.  At the moment I am faced with the scenario of displaying a window which CanResize == true && CanMinimize == false.  This simple configuration is impossible via the currently designed ResizeMode property.

I do understand that I can just go into the template and hack out the minimize button, but I'd rather Telerik fix the problem by creating a new and separate property for minimization (e.g. bool CanMinimize).  The problem with going down the hacking route is that the maintenance is multiplied when supporting multiple themes.
RIZAL
Top achievements
Rank 1
 answered on 09 Mar 2016
10 answers
531 views
Using the RadWindow control, is there a way to hide the "X" button in the upper right hand corner?

Thanks in advance,

Todd
Nasko
Telerik team
 answered on 25 Jan 2016
11 answers
220 views
Hi

If we have multiple RadWindow then it is hard to manage the windows.

Because you can't navigate to the background window if foreground window is covering it. You much have to minimize/move the foreground window to see the background window.

We want to implement the windows taskbar like functionality from which we can navigate to any window we want

According to our scenario could you please answer following questions??

1) how to create task bar and mange the multiple RadWindow, The TaskBar should support the multiple window ( if the number of windows increases, the  taskbar button's width gets reduced to fit the all the buttons, even it number of buttons increases to fit in the taskBar it should behave the same way what windows does)

2) If We have implemented taskbar then the maximized RadWindow may not hide the task bar and may resize with the browser's window

It would be great if you can provide sample

Thanks,
Nasko
Telerik team
 answered on 14 Aug 2015
Top users last month
horváth
Top achievements
Rank 2
Iron
Iron
Steve
Top achievements
Rank 2
Iron
Erkki
Top achievements
Rank 1
Iron
Mark
Top achievements
Rank 2
Iron
Iron
Veteran
Jakub
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?