Unplanned
Last Updated: 11 Jun 2021 11:36 by ADMIN
Caleb
Created on: 11 Jun 2021 11:34
Category: ComboBox
Type: Bug Report
0
ComboBox: NullRefException when setting DisplayMemberPath and SearchTexhPath in shared resource file

For example when setting the following code in App.xaml resources

<Style TargetType="telerikInput:RadComboBox">
                <Setter Property="DropDownBorderColor" Value="Red"/>
                <Setter Property="VerticalOptions" Value="Center"/>
                <Setter Property="SearchMode" Value="Contains"/>
                <Setter Property="Placeholder" Value="rwfrfre"/>
                <Setter Property="PlaceholderColor" Value="Yellow"/>
                <Setter Property="DisplayMemberPath" Value="Population"/>
                <Setter Property="SearchTextPath" Value="Name"/>
            </Style>

 

null ref exception is thrown for DisplayMemberPath and SearchTextPath. 

When setting the style inside the page where the control is defined, it works as expected. 

 

0 comments