or
<telerik:GridViewDataColumn DataMemberBinding="{Binding MULTIPLIER_DA,Mode=TwoWay}" Header="Size da" UniqueName="MULTIPLIER_DA" IsEnabled="{Binding CanUserAdd, RelativeSource={RelativeSource FindAncestor,AncestorType={x:Type Grid}}}" > <telerik:GridViewDataColumn.CellEditTemplate> <DataTemplate> <TextBox Text="{Binding MULTIPLIER_DA,Mode=TwoWay}" IsEnabled="{Binding DataContext.CanUserAdd, RelativeSource={RelativeSource AncestorType={x:Type telerik:RadGridView}}}"></TextBox> </DataTemplate> </telerik:GridViewDataColumn.CellEditTemplate> </telerik:GridViewDataColumn><telerik:RadChart telerik:StyleManager.Theme="Windows8" x:Name="radAreaChart" UseDefaultLayout="False" BorderThickness="0" Background="{x:Null}" BorderBrush="{x:Null}" > <Grid> <Grid.RowDefinitions> <RowDefinition Height="auto"></RowDefinition> <RowDefinition Height="*"></RowDefinition> </Grid.RowDefinitions> <Grid.ColumnDefinitions> <ColumnDefinition Width="*"/> <ColumnDefinition Width="auto"/> </Grid.ColumnDefinitions> <telerik:ChartTitle telerik:StyleManager.Theme="Windows8" x:Name="AreaChartTitle" HorizontalAlignment="Center" Content="{Binding Resource.ConnectionPerProfile}" Grid.Row="0" Grid.Column="1" Background="{x:Null}" FontFamily="Segoe UI Semibold" BorderThickness="0" OuterBorderBrush="{x:Null}" FontSize="13.333"> </telerik:ChartTitle> <telerik:ChartArea telerik:StyleManager.Theme="Windows8" Grid.Row="1" x:Name="AreaChart" Margin="0" LegendName="AreaChartLegend"> </telerik:ChartArea> <telerik:ChartLegend telerik:StyleManager.Theme="Windows8" Grid.Row="1" x:Name="AreaChartLegend" Header="{Binding Resource.Legend}" Margin="-4,0" Grid.Column="1" /> </Grid> </telerik:RadChart>
AreaChart.DataSeries.Clear(); AreaChart.AxisX.AutoRange = true; AreaChart.AxisY.AxisStyles.AlternateStripLineStyle = this.Resources["HorizontalStripLineStyle"] as Style; AreaChart.SeriesStyles.SplineAreaSeriesStyle = this.Resources["ScatterAreaSeriesStyle"] as Style; DataSeries chartProfilesSeries = new DataSeries(); chartProfilesSeries.Definition = new SplineAreaSeriesDefinition(); chartProfilesSeries.Definition.SeriesStyle = this.Resources["ScatterAreaSeriesStyle"] as Style; if (null != (this.DataContext as MainViewModel).LstChartTotalDateConnexion) { foreach (ChartsDateConnectionDTO c in (this.DataContext as MainViewModel).LstChartTotalDateConnexion) { chartProfilesSeries.Add(new DataPoint() { //Label = String.Format("{0} : {1} ", Strings.TotalOfconnection, c.Date.ToString("dd/MM")), YValue = c.Connection, XCategory = c.Date.ToString("dd/MM"), Tooltip = String.Format("{0} du {1} ", Strings.TotalOfconnection, c.Date.ToString("dd/MM")) }); } chartProfilesSeries.Definition.SeriesName = String.Format("{0}", Strings.TotalOfconnection); chartProfilesSeries.LegendLabel = String.Format("{0}", Strings.TotalOfconnection); chartProfilesSeries.Definition.ShowItemToolTips = true; chartProfilesSeries.Definition.ShowItemLabels = true; chartProfilesSeries.Definition.InteractivitySettings.HoverScope = InteractivityScope.Series; chartProfilesSeries.Definition.InteractivitySettings.SelectionScope = InteractivityScope.Series; AreaChart.DataSeries.Add(chartProfilesSeries);I have a Radlistbox binded trough ItemsSource and Windows8TouchTheme applied.
Inside each item in RadListBox there is a button with a click event.
If the item is not selected the event is fired, but if the item is selected the event is NOT fired.
If I remove the Windows8TouchTheme the event is always fired.
A think this is a bug, any workaround for this?
I am using one grid inside radcombobox just like the xaml bellow.
<telerik:RadComboBox DisplayMemberPath="Descricao" Name="radComboBoxResultado" Grid.Column="2" StaysOpenOnEdit="True" Height="26"> <telerik:RadComboBox.Items> <telerik:RadComboBoxItem> <telerik:RadComboBoxItem.Template> <ControlTemplate> <Grid> <Grid.RowDefinitions> <RowDefinition Height="*"></RowDefinition> <RowDefinition Height="*"></RowDefinition> </Grid.RowDefinitions> <telerik:RadGridView x:Name="RadGridView" AutoGenerateColumns="False" ShowGroupPanel="False" CanUserFreezeColumns="False" RowIndicatorVisibility="Collapsed" IsReadOnly="True" MinWidth="300" MaxWidth="600" IsFilteringAllowed="False" ItemsSource="{Binding PagedSource, ElementName=RadDataPager}" SelectionChanged="RadGridView_SelectionChanged" Height="150" SelectedItem="{Binding SelectedItem, Mode=TwoWay}" Loaded="RadGridViewResultadoBusca_Loaded"> <telerik:RadGridView.Columns> <telerik:GridViewDataColumn Header="Referência" Width="120" DataMemberBinding="{Binding CodigoProduto}" IsReadOnly="True"></telerik:GridViewDataColumn> <telerik:GridViewDataColumn Header="Produto" Width="*" DataMemberBinding="{Binding Descricao}" IsReadOnly="True"></telerik:GridViewDataColumn> <telerik:GridViewDataColumn Header="Venda" Width="*" DataMemberBinding="{Binding ValorVenda}" DataFormatString="C2" IsReadOnly="True"></telerik:GridViewDataColumn> </telerik:RadGridView.Columns> </telerik:RadGridView> <telerik:RadDataPager Name="RadDataPager" Grid.Row="1" DisplayMode="FirstLastNumeric,Last" PageSize="20" Loaded="RadDataPager_Loaded"></telerik:RadDataPager> </Grid> </ControlTemplate> </telerik:RadComboBoxItem.Template> </telerik:RadComboBoxItem> </telerik:RadComboBox.Items> </telerik:RadComboBox>
Everything is ok but when i select the row in grid i'd like the text to appear in Text property of RadcomboBox .
I've tried to binding the selected items together, and does not works, as well as, implement the selectedChnaged of the grid to set the combo.Text property with no success.
How can i achieve this?
Thanks