Telerik Forums
UI for WPF Forum
2 answers
146 views
Hello,
Is it possible to set different FilteringMode for columns, not for grid?
I.e.:
Column1 - FilteringMode=Popup
.
.
.
Column9 - FilteringMode=FilterRow.

I'll be appreciate for any help.
Paweł
Top achievements
Rank 1
 answered on 01 Aug 2013
1 answer
89 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
462 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
224 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
188 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
148 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
215 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
381 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
201 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
352 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
Narrow your results
Selected tags
Tags
GridView
General Discussions
Chart
RichTextBox
Docking
ScheduleView
ChartView
TreeView
Diagram
Map
ComboBox
TreeListView
Window
RibbonView and RibbonWindow
PropertyGrid
DragAndDrop
TabControl
TileView
Carousel
DataForm
PDFViewer
MaskedInput (Numeric, DateTime, Text, Currency)
AutoCompleteBox
DatePicker
Buttons
ListBox
GanttView
PivotGrid
Spreadsheet
Gauges
NumericUpDown
PanelBar
DateTimePicker
DataFilter
Menu
ContextMenu
TimeLine
Calendar
Installer and Visual Studio Extensions
ImageEditor
BusyIndicator
Expander
Slider
TileList
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
LayoutControl
ProgressBar
Sparkline
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
Licensing
WebCam
CardView
DataBar
FilePathPicker
PasswordBox
SplashScreen
Callout
Rating
Accessibility
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?