Telerik Forums
UI for WPF Forum
2 answers
134 views
Good day.
When I set a mask for my RadMaskedTextBox MaskType = "Numeric" Mask = "N" and start typing numeric values ​​by default are presenting 0.00 and continue typing the number in the beginning these zeros always remain at the end of the value. Fasso How to get around this? Somehow need that 0.00, but only when the control does not have a set value and without focu, but by winning the focu needed it to be cleaned and defining mascara according co the value entered!

In short: I do not have a default value of 0.00 only when the need has not focu and the set value is 0 otherwise need the formatted value and typing in the value vanish with 0.00!

NOTE: The same goes for the type MaskType = "DateTime" values ​​pre-defined not.

graciously
André
Pavel R. Pavlov
Telerik team
 answered on 02 Aug 2013
3 answers
512 views
Hello,

I have a grid view which I want to ALWAYS group by a particular column.  I need to let the user also group by more columns if they choose so I still need to show the group panel.

I can set the initial group descriptor fine in XAML, but would like to hide the button which appears in the Group Panel so the user cannot remove the grouping. (not sure what the proper term for this button is)

I found code to handle the Grouping event and canceling the removal, but I'd really like to have that button hidden if possible.

Thanks,
Chris
Muhammad
Top achievements
Rank 1
 answered on 01 Aug 2013
2 answers
134 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
76 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
449 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
210 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
174 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
140 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
206 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
362 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
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
Slider
Expander
TileList
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
ProgressBar
Sparkline
LayoutControl
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
WebCam
CardView
DataBar
Licensing
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
HighlightTextBlock
Security
TouchManager
StepProgressBar
VirtualKeyboard
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?