This is a migrated thread and some comments may be shown as answers.

Parser Error Using RadComboBox

6 Answers 81 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
BALA MUKUND
Top achievements
Rank 1
BALA MUKUND asked on 05 Mar 2010, 12:31 AM
Hello,

I am getting a strange PARSER_BAD_PROPERTY error when I include a RadComboBox with the event -

SelectionChanged


When I remove this - it works fine.

This is my code block

<UserControl x:Class="iChannel.CRM.Dashboard.BoBDashBoard" 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"   
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"   
    Width="1280" 
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"   
        xmlns:telerikChart="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Charting" 
        xmlns:telerikCharting="clr-namespace:Telerik.Windows.Controls.Charting;assembly=Telerik.Windows.Controls.Charting" 
        xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls" 
        xmlns:grid="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView" 
        xmlns:gridView="clr-namespace:Telerik.Windows.Controls.GridView;assembly=Telerik.Windows.Controls.GridView" 
             xmlns:data="clr-namespace:Telerik.Windows.Data;assembly=Telerik.Windows.Data" 
             xmlns:telerikInput="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Input">  
 
    <Border CornerRadius="5" BorderThickness="5" Background="Transparent" BorderBrush="Black" Margin="0,0,0,-5">  
        <Grid x:Name="LayoutRoot" Background="Black" > 
                    <telerikChart:RadChart x:Name="RadChart1"  telerik:StyleManager.Theme="Office_Black" UseDefaultLayout="False"  > 
                        <Grid> 
                            <Grid.RowDefinitions> 
                                <RowDefinition Height="60" /> 
                                <RowDefinition Height="300" /> 
                                <RowDefinition Height="60" /> 
                                <RowDefinition Height="280" /> 
                                <!--<RowDefinition Height="*" />--> 
                            </Grid.RowDefinitions> 
                            <Grid.ColumnDefinitions> 
                                <ColumnDefinition Width="300" /> 
                                <ColumnDefinition Width="100" /> 
                                <ColumnDefinition Width="200" /> 
                                <ColumnDefinition Width="100" /> 
                                <ColumnDefinition Width="100" /> 
                                <ColumnDefinition Width="*" /> 
                            </Grid.ColumnDefinitions> 
 
 
                            <telerikCharting:ChartTitle x:Name="radMonthlyChartTitle" FontSize="12" 
                             VerticalAlignment="Top" HorizontalAlignment="Center" Grid.Row="0"  Foreground="White" Grid.ColumnSpan="4"/>  
 
                      
 
                    <telerikCharting:ChartArea Grid.Row="1" Grid.ColumnSpan="4" x:Name="radMonthlyChart" LegendName="radMonthlyChartLegend" /> 
                              
                            <telerikInput:RadComboBox x:Name="radSalesTeamComboBox" Grid.Row="0" Grid.Column="5" Width="150" Height="20" Margin="0 5 0 0" HorizontalAlignment="Left" DisplayMemberPath="Name" SelectedValuePath="Login" ItemsSource="{Binding}" SelectionChanged="SalesTeamSelectionChanged"/>  
                              
                            <telerikCharting:ChartLegend x:Name="radMonthlyChartLegend" Header="Legend:" Grid.Row="1" Grid.Column="5"/>  
                              
                            <telerikCharting:ChartTitle x:Name="radQuarterlyChartTitle" 
                              VerticalAlignment="Top" HorizontalAlignment="Center" FontSize="12" Grid.Row="2" Grid.ColumnSpan="2"/>  
                            <telerikCharting:ChartArea Grid.Row="3" x:Name="radQuarterlyChart" ItemToolTipOpening="radQuarterlyChart_ItemToolTipOpening"  LegendName="radQuarterlyChartLegend" /> 
 
                            <Grid Grid.Row="3" Grid.ColumnSpan="3" Grid.Column="2">  
                            <Grid HorizontalAlignment="Left" VerticalAlignment="Top" Height="185" Width="225">  
                                <Grid.RowDefinitions> 
                                    <RowDefinition Height="60" /> 
                                    <RowDefinition Height="*" /> 
                            </Grid.RowDefinitions> 
                                    <telerikCharting:ChartTitle x:Name="radGridHeader"   
                                        VerticalAlignment="Top" HorizontalAlignment="Left" FontSize="12" Grid.Row="0"/>  
                                            <grid:RadGridView Margin="0,0,0,1" x:Name="radQuarterlyGrid"  ShowColumnFooters="False" ShowColumnHeaders="True"  ShowGroupPanel="False" ShowGroupFooters="False" Width="400" 
                                            AutoGenerateColumns="False"  ColumnBackground="Bisque" IsReadOnly="True" IsFilteringAllowed="False" CanUserFreezeColumns="False" Grid.Row="1">  
                                                 <grid:RadGridView.Columns> 
                                                        <grid:GridViewDataColumn Header="Sales Quarter" DataMemberBinding="{Binding Quarter}" IsResizable="False" MinWidth="100"></grid:GridViewDataColumn> 
                                                        <grid:GridViewDataColumn Header="Amount" DataMemberBinding="{Binding Amount}" IsResizable="False" MinWidth="125"></grid:GridViewDataColumn> 
                                                        </grid:RadGridView.Columns> 
                                                 </grid:RadGridView> 
                                     
                        </Grid> 
                            </Grid> 
 
                            <telerikCharting:ChartLegend x:Name="radQuarterlyChartLegend" Header="Legend:" Grid.Row="3" Grid.Column="5"/>  
 
                            
                              
 
                </Grid> 
                    </telerikChart:RadChart> 
 
            </Grid> 
        </Border> 
</UserControl> 
 

I am really at a loss. Any help would be much appreciated.

Thanks
Bala

6 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 05 Mar 2010, 07:15 AM
Hello BALA,

Do you have public SalesTeamSelectionChanged method?

Sincerely yours,
Vlad
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
BALA MUKUND
Top achievements
Rank 1
answered on 05 Mar 2010, 12:26 PM
Hi Vlad,

This is what I have

private void SalesTeamSelectionChanged(object sender, System.Windows.Controls.SelectionChangedEventArgs e) 
{

}

I don't have any code within the block.

Thanks
Bala
0
Valeri Hristov
Telerik team
answered on 05 Mar 2010, 12:30 PM
Hi,

Try making the method public and let us know if it continues to throw the exception.

Greetings,
Valeri Hristov
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
BALA MUKUND
Top achievements
Rank 1
answered on 05 Mar 2010, 12:40 PM
Hello,

I get the same error. I changed private to public.

Thanks
Bala
0
Valeri Hristov
Telerik team
answered on 05 Mar 2010, 12:58 PM
I just noticed that the SelectionChangedEventArgs are fully qualified. RadComboBox uses own event args, that are in different namespace. The following method declaration should fix the problem:
private void SalesTeamSelectionChanged(object sender, Telerik.Windows.Controls.SelectionChangedEventArgs e)
{

}

Kind regards,
Valeri Hristov
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
BALA MUKUND
Top achievements
Rank 1
answered on 05 Mar 2010, 01:32 PM
Thank you very much - that did fix the problem. My bad - I wasn't paying enough attention. Thanks once again.
Tags
ComboBox
Asked by
BALA MUKUND
Top achievements
Rank 1
Answers by
Vlad
Telerik team
BALA MUKUND
Top achievements
Rank 1
Valeri Hristov
Telerik team
Share this question
or