Telerik Forums
UI for WPF Forum
2 answers
266 views
I've been using the "WPFDialogManagement" controls for popup message windows previously and they allow for command like this: 

dialogWait = dialogManager.CreateWaitDialog("We're good to go. This message will self destruct in 3 seconds...", DialogMode.Ok);
dialogWait.Show(() => Thread.Sleep(3000));

This pops up the message and then auto closes after 3 seconds if the "ok" button isn't pressed.

Is it possible to get a similar behavior with the RadWindow.Alert or by another means?

Thanks...


Mike
Top achievements
Rank 1
 answered on 16 Sep 2013
2 answers
88 views
hi ya,

Framework 4.5. VS 2012 Ultimate Update 3.

Telerik WPF 2013 Q1 NET 45

I embedded that control in a Window in my WPF desktop project and sometimes everything is stuck and I need to close my IDE throught Task Manager.

xaml:
<Window x:Class="Calculadoreta" ResizeMode="NoResize"
         xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
         KeyDown="Window_KeyDown"
    Title="Calculadora" Height="350" Width="443"><Grid x:Name="Calculadora">
    <Grid.Background>
        <LinearGradientBrush EndPoint="0.985,0.415" StartPoint="0.053,0.415">
            <GradientStop Color="#FF99B4D1" Offset="0"/>
            <GradientStop Color="White" Offset="1"/>
        </LinearGradientBrush>
    </Grid.Background>
    <Grid.ColumnDefinitions>
        <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>
    <Grid.RowDefinitions>
        <RowDefinition Height="*"/>
        <RowDefinition Height="*"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
    <telerik:RadCalculator Grid.RowSpan="3" Grid.ColumnSpan="2" Margin="115,25,117,29"/>
</Grid>
</Window>

code-behind:


Public Class Calculadoreta
 
    Private Sub Window_KeyDown(sender As Object, e As KeyEventArgs)
 
        If Key.Escape Then
 
            Me.DialogResult = True
            Me.Close()
 
        End If
 
 
    End Sub
End Class

Sometimes I can see this error:


"Error argument 9 NullReferenceException: Referencia a objeto no establecida como instancia de un objeto.
"Reference not established like object instance"

Thanks in advance,
Enric
Top achievements
Rank 1
 answered on 16 Sep 2013
3 answers
486 views
Hello,

I'm using the combobox in this example inside a grid as a celledittemplate:

http://www.telerik.com/community/forums/silverlight/combobox/multiselect-option-in-combo-box.aspx

I'm now stuck because I want to bind the comma separated values to the column dataitem, it is a string type.
I'm kind of new to wpf binding and I've tried a lot of things to get this done, but cannot achieve my goal.
please help.

Here's the column definition, Choices is the property I need to bind the results of the checked items.

<telerik:GridViewDataColumn Header="Choices"   
   DataMemberBinding="{Binding Choices, Mode=TwoWay}">  
   <telerik:GridViewDataColumn.CellEditTemplate> 
      <DataTemplate> 
         <telerik:RadComboBox x:Name="ChoicesCombo" 
            Loaded="OnChoicesComboBoxLoaded" SelectedIndex="0"   
            SelectedValue="{Binding Choices, Mode=TwoWay}" > 
            <telerik:RadComboBox.ItemTemplate> 
               <DataTemplate> 
                  <CheckBox IsChecked="{Binding IsChecked, Mode=TwoWay}"   
                     Content="{Binding Text}" /> 
               </DataTemplate> 
            </telerik:RadComboBox.ItemTemplate> 
            <telerik:RadComboBox.SelectionBoxTemplate> 
               <DataTemplate> 
                  <TextBlock Text="{Binding Owner.CheckedItems, Converter={StaticResource ValueConverter}}" /> 
               </DataTemplate> 
            </telerik:RadComboBox.SelectionBoxTemplate> 
         </telerik:RadComboBox> 
      </DataTemplate> 
   </telerik:GridViewDataColumn.CellEditTemplate> 
</telerik:GridViewDataColumn> 
Chango
Top achievements
Rank 1
 answered on 16 Sep 2013
3 answers
174 views
Hi,

I would like to know if it's possible to have the same application button than the RibbonBar?

Thank's
Myth
Top achievements
Rank 1
 answered on 16 Sep 2013
1 answer
147 views
We are using a RadBusyIndicator and everything is working fine, except the fact, that the BusyIndicator disables editing of enclosed controls in Design Mode.

Imagine there is a window with some buttons and textboxes and the BusyIndicator encloses these buttons and textboxes. During runtime enabling and disabling these controls via BusyIndicator works fine, but in VS2010 design mode you cannot e.g. shift the buttons around. Of course you can manually change the xaml code, but this is cumbersome.

Question: If I have integrated a BusyIndicator like this, how do I disable it during design time?

<telerik:RadBusyIndicator 
IsBusy="{Binding IsBusy, FallbackValue=False, TargetNullValue=False}" ...>
Some Buttons and TextBoxes
</telerik:RadBusyIndicator>
 
Rosen Vladimirov
Telerik team
 answered on 16 Sep 2013
2 answers
80 views
I have a RadGridView in a RadPane. The RadGridView has two fixed GroupDescriptors.

The pane is docked to the left by default and the first image shows the groupdescriptors working as intended. If I move the pane by dragging the header the groupdescriptors are instantly lost and I get the view in the 2nd attachment.

Is this normal behavior? If so is there a way to trap the event and stop this from taking place?

Thanks...
Mike
Top achievements
Rank 1
 answered on 16 Sep 2013
1 answer
153 views
Hello,
I'm creating a new WPF application and would like to use implicit styles. The application currently uses the Windows8 theme.
I've added the references to the Telerik assemblies, including Telerik.Windows.Themes.Windows8.
In App.xaml, I have:
<Application.Resources>
  <ResourceDictionary>
    <ResourceDictionary.MergedDictionaries>
      <ResourceDictionary Source="/Telerik.Windows.Themes.Windows8;component/Themes/System.Windows.xaml"/>
      <ResourceDictionary Source="/Telerik.Windows.Themes.Windows8;component/Themes/Telerik.Windows.Controls.xaml"/>
      <ResourceDictionary Source="/Telerik.Windows.Themes.Windows8;component/Themes/Telerik.Windows.Controls.Docking.xaml"/>
      <ResourceDictionary Source="/Telerik.Windows.Themes.Windows8;component/Themes/Telerik.Windows.Controls.GridView.xaml"/>
      <ResourceDictionary Source="/Telerik.Windows.Themes.Windows8;component/Themes/Telerik.Windows.Controls.Navigation.xaml"/>
    </ResourceDictionary.MergedDictionaries>
  </ResourceDictionary>
</Application.Resources>

In Window1.xaml, I just have added a RadButton.
When I run the application, the button is displayed with the right theme, but the Visual Studio 2012 designer doesn't show the content of the button, as if the theme was not loaded.
How can I have the Visual Studio designer display the button correctly?

Patrick
Rosen Vladimirov
Telerik team
 answered on 16 Sep 2013
1 answer
180 views
Hello, I have problem with radgridview.
Im using mvvm pattern. In viewmodel i implemented observablecollection which contain rows with data. : 
xaml:
        <telerik:RadGridView ItemsSource="{Binding MyCollection}"
                             x:Name="RadGridViewElement"
                             FilteringMode="Popup"/>

viewmodel:

 private ObservableCollection<myrow> myCollection = new ObservableCollection<myrow>();

        public kolekcja()
        {

            generatedata();
        }
        
        private void generatedata()
        {
           myrow row = new myrow();
            row.Imie = "aa";
            row.Nazwisko = "bb";
            myCollection.Add(row);
            myrow row1 = new wiersz();
            row1.Imie = "cc ";
            row1.Nazwisko = "dd";
            myCollection.Add(row1);
        }

        public ObservableCollection<wiersz> MyCollection
        {
            get { return myCollection; }
            set { myCollection = value; }
        }

Is there any option to return filtered  radgridview data rows  (update myCollection ? or save rows to other collection ?) I would like create graph with the filtered data . I looking for the easiest way to create column header filter from GUI (Just like [DisplayAttribute( AutoGenerateField = false )] ) 
any idea ?
kind regards

 
Rossen Hristov
Telerik team
 answered on 16 Sep 2013
8 answers
286 views
When I remove a node (using the DEL key) I want its connections to be removed too. As it is now, I get these orphaned connections when removing a node.

This is the scenario:
1) Node A is connected - through connection X - to node B.
2) B is selected. I press the DEL key. Both B and X are removed.
3) I press Ctrl+Z. Both the removal of B and X are undone.

This behavior is absolutely necessary for our product. How can I accomplish this?
Petar Mladenov
Telerik team
 answered on 16 Sep 2013
1 answer
229 views
Hi,

I want to put the following RTB fir the LeftPage and rightPage for the book.

this is the Dictionary code where I created the Left and right pages for the book :

                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
        <Style x:Key="myStyle" TargetType="Button">
            <Setter Property="Background" Value="Orange" />
            <Setter Property="FontStyle" Value="Italic" />
            <Setter Property="Padding" Value="8,4" />
            <Setter Property="Margin" Value="4" />
        </Style>
     
 
        <!--  Declare the template used for the left pages  -->
        <DataTemplate x:Name ="LeftPageTemplate"   >
            <StackPanel Margin="10" Background="LightGray">
 
               
            </StackPanel>
        </DataTemplate>
        <!--  Declare the template used for the right pages  -->
        <DataTemplate x:Name="RightPageTemplate" DataType="Grid"  >
            <StackPanel Margin="10" Background="LightBlue">
                <TextBlock HorizontalAlignment="Right"
                           FontSize="24"
                           FontWeight="Bold"
                           Text="{Binding Title}" />
                <Image Width="240"
                       Height="320"
                       Source="{Binding Image}" />
                <StackPanel HorizontalAlignment="Right" Orientation="Horizontal">
                    <TextBlock FontWeight="Bold" Text="Date Taken:" />
                    <TextBlock Text="{Binding DateTaken}" />
                </StackPanel>
                <StackPanel HorizontalAlignment="Right" Orientation="Horizontal">
                    <TextBlock FontWeight="Bold" Text="Size:" />
                    <TextBlock Text="{Binding Size}" />
                </StackPanel>
            </StackPanel>
        </DataTemplate>
 
      
 
</ResourceDictionary>



The problem is, How do I create the Template, I tried the example in the Help Document and it still do not work.
 I get the following error,
'Could not register named object. Names not supported under ResourceDictionary scope.' Line number '12' and line position '23

Please see attached image.

Regards,
Omar



o
Top achievements
Rank 2
 answered on 15 Sep 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?