Telerik Forums
UI for WPF Forum
1 answer
70 views
Hi.
In my application I need to focus TextBox (which is inside Filter column) after press keyboard tab button.
So at the begining i'd like to focus first filter textbox -> press tab, focus next etc.
Any sample for that?
Yoan
Telerik team
 answered on 01 Aug 2013
6 answers
437 views
Title says it.

How do I go about printing the chart at its current state (pan, zoom etc.)?
RadChart made it possible to export (save) the diagram as an image to a temp file that could be used but I don't see this feature with ChartView.

(Sorry if this question has been asked before but my attempts to search the forums came up with nothing.)
Ves
Telerik team
 answered on 01 Aug 2013
1 answer
203 views
Hello. I have some problem after i've made update to the new version of telerik controls. I have ribbon with buttons (with path as content). And now buttons don't display any content. It' happen with buttons in group (in radOrderedWrapPanel). I don't khow what I need to do. 

    <telerik:RadOrderedWrapPanel CompressedItemsOrder="0,1,2">
        <telerik:RadRibbonComboBox x:Name="NamedWorkspaceConfigs" Width="170"
                                   ItemsSource="{Binding ElementName=MainWindow, Path=ConfigService.NamedWorkspaceConfigs}"
                                   DisplayMemberPath="Name"
                                   SelectedValuePath="Key" />
 
        <telerik:RadButtonGroup>
            <telerik:RadRibbonButton Click="LoadLayout_OnClick"
                                     Height="24" Width="24"
                                     telerik:ScreenTip.Title="Восстановить конфигурацию"
                                     telerik:ScreenTip.Description="Восстановить конфигурацию под выбранным именем"
                                     telerik:KeyTipService.AccessText="В">
                <Path Data="M1,15 L1,1 L7,1 L7,15 z M4,6 L12,6 L12,4 L15,8 L12,12 L12,10 L4,10 z"
                      Stroke="{Binding Path=Foreground, RelativeSource={RelativeSource AncestorType={x:Type telerik:RadRibbonButton}}}"
                      StrokeThickness="2" />
            </telerik:RadRibbonButton>
            <telerik:RadRibbonButton Click="LoadLayout_OnClick"
                                     Height="24" Width="24"
                                     telerik:ScreenTip.Title="Восстановить конфигурацию"
                                     telerik:ScreenTip.Description="Восстановить конфигурацию под выбранным именем"
                                     telerik:KeyTipService.AccessText="В">
                <StackPanel>
                    <Viewbox Stretch="Uniform">
 
                        <Grid Background="Red">
                            <Path Data="M1,15 L1,1 L7,1 L7,15 z M4,6 L12,6 L12,4 L15,8 L12,12 L12,10 L4,10 z"
                      Stroke="{Binding Path=Foreground, RelativeSource={RelativeSource AncestorType={x:Type telerik:RadRibbonButton}}}"
                      StrokeThickness="2" />
                        </Grid>
                            </Viewbox>
                </StackPanel>
                 
            </telerik:RadRibbonButton>
        </telerik:RadButtonGroup>
 
        <telerik:RadButtonGroup>
            <telerik:RadRibbonButton Click="SaveLayout_OnClick"
                                     Height="24" Width="24"
                                     telerik:ScreenTip.Title="Сохранить конфигурацию"
                                     telerik:ScreenTip.Description="Сохранить конфигурацию под текущим именем"
                                     telerik:KeyTipService.AccessText="С">
                <Path Data="M1,15 L1,1 L7,1 L7,15 z M15,6 L9,6 L9,4 L6,8 L9,12 L9,10 L15,10 z "
                      Stroke="{Binding Path=Foreground, RelativeSource={RelativeSource AncestorType={x:Type telerik:RadRibbonButton}}}"
                      StrokeThickness="2" />
            </telerik:RadRibbonButton>
 
            <telerik:RadRibbonButton Click="SaveAsLayout_OnClick"
                                     Height="24" Width="24"
                                     telerik:ScreenTip.Title="Сохранить конфигурацию как"
                                     telerik:ScreenTip.Description="Сохранить конфигурацию под новым именем"
                                     telerik:KeyTipService.AccessText="СК">
                <Path Data="M1,15 L1,1 L7,1 L7,15 z M9,12 L15,12 M12,9 L12,15 "
                      Stroke="{Binding Path=Foreground, RelativeSource={RelativeSource AncestorType={x:Type telerik:RadRibbonButton}}}"
                      StrokeThickness="2" />
            </telerik:RadRibbonButton>
        </telerik:RadButtonGroup>
 
        <telerik:RadButtonGroup>
            <telerik:RadRibbonButton Click="RemoveLayout_OnClick"
                                     Height="24" Width="24"
                                     telerik:ScreenTip.Title="Удалить конфигурацию"
                                     telerik:ScreenTip.Description="Удалить конфигурацию"
                                     telerik:KeyTipService.AccessText="У">
                <Path Data="M1,1 L15,15 M1,15 L15,1" StrokeThickness="2"
                      Stroke="{Binding Path=Foreground, RelativeSource={RelativeSource AncestorType={x:Type telerik:RadRibbonButton}}}" />
            </telerik:RadRibbonButton>
        </telerik:RadButtonGroup>
 
        <telerik:RadButtonGroup>
            <telerik:RadRibbonButton Click="OpenConfigFolder_OnClick"
                                     Height="24" Width="24"
                                     telerik:ScreenTip.Title="Открыть папку"
                                     telerik:ScreenTip.Description="Открыть папку, в которой расположен файл с конфигурациями"
                                     telerik:KeyTipService.AccessText="П">
                <Path Data="M1,1 L8,1 L8,4 L15,4 L15,15 L1,15 z" StrokeThickness="2"
                      Stroke="{Binding Path=Foreground, RelativeSource={RelativeSource AncestorType={x:Type telerik:RadRibbonButton}}}" />
            </telerik:RadRibbonButton>
        </telerik:RadButtonGroup>
 
    </telerik:RadOrderedWrapPanel>
</telerik:RadRibbonGroup>
 
<telerik:RadRibbonGroup Header="Управление окнами"
                        telerik:KeyTipService.AccessText="УО">
    <telerik:RadOrderedWrapPanel CompressedItemsOrder="0,1,2">
        <telerik:RadRibbonComboBox Width="170"
                                   ItemsSource="{Binding Path=OpenWindows}"
                                   SelectedValue="{Binding Path=ActiveWrapper}"
                                   DisplayMemberPath="OlbMdiWindow.Title"
                                   telerik:ScreenTip.Title="Активное окно"
                                   telerik:ScreenTip.Description="Текущее активное окно"
                                   telerik:KeyTipService.AccessText="А" />
 
        <telerik:RadButtonGroup>
            <telerik:RadRibbonButton Command="{Binding Path=WindowsArrangeCommand}"
                                     Height="24" Width="24"
                                     telerik:ScreenTip.Title="Окна каскадом"
                                     telerik:KeyTipService.AccessText="К">
                <telerik:RadRibbonButton.CommandParameter>
                    <enums:OlbMdiContainerLayout>Cascade</enums:OlbMdiContainerLayout>
                </telerik:RadRibbonButton.CommandParameter>
                <Path Data="M5,10 L1,10 L1,1 L10,1 L10,5 M5,5 L15,5 L15,15 L5,15 z"
                      Stroke="{Binding Path=Foreground, RelativeSource={RelativeSource AncestorType={x:Type telerik:RadRibbonButton}}}"
                      StrokeThickness="2" />
            </telerik:RadRibbonButton>
 
            <telerik:RadRibbonButton Command="{Binding Path=WindowsArrangeCommand}"
                                     Height="24" Width="24"
                                     telerik:ScreenTip.Title="Окна рядом"
                                     telerik:KeyTipService.AccessText="Р">
                <telerik:RadRibbonButton.CommandParameter>
                    <enums:OlbMdiContainerLayout>TileHorizontal</enums:OlbMdiContainerLayout>
                </telerik:RadRibbonButton.CommandParameter>
                <Path Data="M1,1 L6,1 L6,15 L1,15 z M10,1 L15,1 L15,15 L10,15 z"
                      Stroke="{Binding Path=Foreground, RelativeSource={RelativeSource AncestorType={x:Type telerik:RadRibbonButton}}}"
                      StrokeThickness="2" />
            </telerik:RadRibbonButton>
            <telerik:RadRibbonButton Command="{Binding Path=WindowsArrangeCommand}"
                                     Height="24" Width="24"
                                     telerik:ScreenTip.Title="Окна стопкой"
                                     telerik:KeyTipService.AccessText="С">
                <telerik:RadRibbonButton.CommandParameter>
                    <enums:OlbMdiContainerLayout>TileVertical</enums:OlbMdiContainerLayout>
                </telerik:RadRibbonButton.CommandParameter>
                <Path Data="M1,1 L15,1 L15,6 L1,6 z M1,10 L15,10 L15,15 L1,15 z"
                      Stroke="{Binding Path=Foreground, RelativeSource={RelativeSource AncestorType={x:Type telerik:RadRibbonButton}}}"
                      StrokeThickness="2" />
            </telerik:RadRibbonButton>
        </telerik:RadButtonGroup>
        <telerik:RadButtonGroup>
            <telerik:RadRibbonButton Command="{Binding Path=MinimizeAllWindowsCommand}"
                                     Height="24" Width="24"
                                     telerik:ScreenTip.Title="Свернуть все окна"
                                     telerik:KeyTipService.AccessText="М">
                <Path Data="M1,15 L15,15"
                      Stroke="{Binding Path=Foreground, RelativeSource={RelativeSource AncestorType={x:Type telerik:RadRibbonButton}}}"
                      StrokeThickness="2" />
            </telerik:RadRibbonButton>
            <telerik:RadRibbonButton Command="{Binding Path=RestoreAllWindowsCommand}"
                                     Height="24" Width="24"
                                     telerik:ScreenTip.Title="Восстановить все окна"
                                     telerik:KeyTipService.AccessText="В">
                <Path Data="M1,15 L1,4 L12,4 L12,15 z M3,1 L15,1 L15,13"
                      Stroke="{Binding Path=Foreground, RelativeSource={RelativeSource AncestorType={x:Type telerik:RadRibbonButton}}}"
                      StrokeThickness="2" />
            </telerik:RadRibbonButton>
            <telerik:RadRibbonButton Command="{Binding Path=CloseAllWindowsCommand}"
                                     Height="24" Width="24"
                                     telerik:ScreenTip.Title="Закрыть все окна"
                                     telerik:KeyTipService.AccessText="З">
                <Path Data="M1,1 L15,15 M1,15 L15,1"
                      Stroke="{Binding Path=Foreground, RelativeSource={RelativeSource AncestorType={x:Type telerik:RadRibbonButton}}}"
                      StrokeThickness="2"/>
            </telerik:RadRibbonButton>
        </telerik:RadButtonGroup>
        <telerik:RadButtonGroup>
            <telerik:RadRibbonButton Click="MoveWindowToOtherPane_OnClick"
                                     Height="24" Width="24"
                                     telerik:ScreenTip.Title="Переместить окно"
                                     telerik:ScreenTip.Description="Переместить активное окно на другую закладку"
                                     telerik:KeyTipService.AccessText="П">
                <Path Data="M8,1 L15,1 L15,15 L8,15 z M8,4 L15,4 M1,2 L5,2 M1,14 L5,14 M2,8 L5,8"
                      Stroke="{Binding Path=Foreground, RelativeSource={RelativeSource AncestorType={x:Type telerik:RadRibbonButton}}}"
                      StrokeThickness="2" />
            </telerik:RadRibbonButton>
        </telerik:RadButtonGroup>
    </telerik:RadOrderedWrapPanel>
Pavel R. Pavlov
Telerik team
 answered on 31 Jul 2013
1 answer
163 views
For some type of Data I'm write my own control for property grid. How to specify  what property in MyUserControl should be used for bindind?

<telerik:RadPropertyGrid 
  AutoGeneratePropertyDefinitions="True"
EditorTemplateSelector="{StaticResource DataTemplateSelector}"
>
</telerik:RadPropertyGrid>

<local:PropertyTemplateSelector x:Key="DataTemplateSelector">
  <local:PropertyTemplateSelector.MyDataStructTemplate>
<DataTemplate DataType=" MyDataStruct ">
  <StackPanel>   
   <local:MyUserControl/>
</StackPanel>
</DataTemplate>
</local:PropertyTemplateSelector. MyDataStructTemplate >
</local:PropertyTemplateSelector>




Ivan Ivanov
Telerik team
 answered on 31 Jul 2013
14 answers
132 views
I need to know how to detect when the label column of a property grid is resized.
Yoan
Telerik team
 answered on 31 Jul 2013
4 answers
194 views
I've placed a RadMaskedTextInput control onto a window, which is to be used for storing a user's social security number (including the dashes, it stores it into a SQL Server table as a VARCHAR(11)). However, when the user wants to tab through the control to the next control, because of the way I've declared it in XAML, they have to tab through each section of the social security number. Naturally, they don't want to do that. They'd rather just tab into this control, then immediately tab out of it as they go onto the next control. I'm not sure how to accomplish that. Here's the definition I have for the RadMaskedTextInput:

<telerik:RadMaskedTextInput x:Name="txtSSN" MinWidth="80" Value="{Binding SocialSecurityNo, UpdateSourceTrigger=PropertyChanged}"
                            TextMode="MaskedText" InputBehavior="Replace" SelectionOnFocus="SelectAll" Mask="d3-d2-d4" FontSize="15"
                            FontFamily="Century Gothic" BorderThickness="1" BorderBrush="#FFE3E9EF"/>
Rod
Top achievements
Rank 1
 answered on 31 Jul 2013
1 answer
342 views
Hi,

I am trying to search and filters the content of a RadTreeView based on a HierarchicalDataTemplate. The user type a string into a search TextBox and on the TextChanged event of this textbox, the content of the treeview is filtered, according to the user input.

I am trying to do exactly what is done by the solution explorer of Visual Studio 2012. I have read a lot of articles and forums but i didn't find a solution yet. I am using a RadTreeView, a CollectionViewSource as datasource. My RadTreeView contains 3 different objects on three levels. I am using MVVM Light.

If anyone have an idea or even better, a solution, please share it :). Thank you in advance for your help!

Regards,
Doots
Pavel R. Pavlov
Telerik team
 answered on 31 Jul 2013
3 answers
179 views

Hi,

How to change the visibility of DocumentRuler in RadRichTextBox. and How to change ruler in different scale like inches, centimetre ?


Regards

Sopan Vaidya
Iva Toteva
Telerik team
 answered on 31 Jul 2013
5 answers
313 views
I have a simple RadPdfViewer declared in my UserControl:

    <t:RadPdfViewer Grid.Row="1" x:Name="PdfViewer" DocumentSource="{Binding Uri}" 
                    PreviewKeyDown="PdfViewer_OnPreviewKeyDown"
                    DocumentChanged="PdfViewer_OnDocumentChanged"/>

Randomly (although it appears that this exception does not occur if I wait for the current document to be fully rendered and the progress indicator to be removed by the RadPdfViewer) when "Uri" property in my VM (which is a simple string property) is changed to new Uri of some pdf file I get ObjectDisposedException with "Cannot access a closed file." message.

StackTrace:

   at System.IO.__Error.FileNotOpen()
   at System.IO.FileStream.get_Position()
   at Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.PdfReader.Readers.PdfReaderBase.ReadInternal() in c:\TB\117\WPF_Scrum\Release_WPF\Sources\Development\Documents\Fixed\Core\FormatProviders\Pdf\PdfReader\Readers\PdfReaderBase.cs:line 174

Exception Detail:
System.ObjectDisposedException occurred
  HResult=-2146232798
  Message=Cannot access a closed file.
  Source=mscorlib
  ObjectName=""
  StackTrace:
       at System.IO.__Error.FileNotOpen()
       at System.IO.FileStream.get_Position()
       at Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.PdfReader.Readers.PdfReaderBase.get_Position() in c:\TB\117\WPF_Scrum\Release_WPF\Sources\Development\Documents\Fixed\Core\FormatProviders\Pdf\PdfReader\Readers\PdfReaderBase.cs:line 55
  InnerException:

Could you please take a look?
Iva Toteva
Telerik team
 answered on 31 Jul 2013
2 answers
431 views
Hi all,

i have got an issue in using drag and drop functionality in combination with autoscrolling in GridView.
I must be able to select a cell in gridview and the target cell can only be made visible with scrolling up (may be the target cell is on the upper side of grid and source cell is contained in last row).
So, if I try to pick up the source cell drag and drop may be initialized and if i move mouse cursor up gridview does not autoscroll up if i come closer and closer to the also visible column headers.

Is there any way to implement it? If yes it would be very very cool if someone can post a solution for it. :)

We use RadGridview in combination with the  DragDropManage (without "and").

Regards
Martin
Mark
Top achievements
Rank 1
 answered on 31 Jul 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?