Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

How change behavior of WPF RelativeSource FindAncestor

$
0
0

Hi Guys,

IN my WPF application i am using telerik:RadcomboBox control and databinding. 

<telerik:RadComboBox
FontSize="11"
FontFamily="Arial"
Height="30"                                                IsEditable="True"                                            VerticalAlignment="Stretch"
HorizontalAlignment="Stretch"                                 DisplayMemberPath="Drg1"                                     Text="{Binding DRG}"                                                                                             ItemsSource="{Binding DataContext.Drgs, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type telerik:RadGridView}}}"                                       SelectedItem="{Binding DRG}"                                  Style="{StaticResource CDIComboBoxStyle}"                                                 BorderThickness="0">                                <telerik:RadComboBox.ItemsPanel>                                    <ItemsPanelTemplate>                                        <VirtualizingStackPanel IsVirtualizing="True" />                                    </ItemsPanelTemplate>                                </telerik:RadComboBox.ItemsPanel>                            </telerik:RadComboBox>

Actually all works fine, but i would to have ability to find values over leading zero. For example when i type 20 it become to 020instead of 20 => 200. Like it works now. Can somebody advice me how i can achieve this ?

 


Viewing all articles
Browse latest Browse all 18858

Trending Articles