Dear support team,
I'm using the RadChart and want to define a global style for several charts. One of the properties to be set is the property PaletteBrushes.
As long as I apply the PaletteBrushes for the RadChart it works, but if I apply it by the style of the chart, the Brushes are not applied.
This one is working:
<telerik:BrushCollection x:Key="DashboardPaletteBrushes"> <SolidColorBrush Color="Green" po:Freeze="True" /> <SolidColorBrush Color="Yellow" po:Freeze="True" /> <SolidColorBrush Color="Red" po:Freeze="True" /> </telerik:BrushCollection> <telerik:RadChart PaletteBrushes="{StaticResource DashboardPaletteBrushes}" />This one does not work:
<telerik:BrushCollection x:Key="DashboardPaletteBrushes"> <SolidColorBrush Color="Green" po:Freeze="True" /> <SolidColorBrush Color="Yellow" po:Freeze="True" /> <SolidColorBrush Color="Red" po:Freeze="True" /> </telerik:BrushCollection> <Style x:Key="DashboardChartStyle" TargetType="telerik:RadChart"> <Setter Property="PaletteBrushes" Value="{StaticResource DashboardPaletteBrushes}" /> </Style> <telerik:RadChart Style="{StaticResource DashboardChartStyle}" />IFilteringControl)
. Then the problem was my filter control was totally different (in look and feel) to the default ones in the grid.
Is there a way to extend the default filter control in grid? or a recommended way to implement similar look and feel?
Thanks
Indrajith
this.pdfViewer.DocumentSource = new PdfDocumentSource(new FileStream(@".\Resources\MERE_User_Guide_v1_2.pdf", FileMode.Open, FileAccess.Read));
thanks
Hi,
I have a problem with GridView (2012.1.326.40):
<telerik:RadGridView CanUserSortColumns="True" ScrollViewer.HorizontalScrollBarVisibility="Disabled" Name="ProductionQuantityTable" IsSynchronizedWithCurrentItem="True"
grid:RadGridViewHelper.ColumnsCollection="{Binding Path=ColumnsCollection, NotifyOnSourceUpdated=True}" SelectedItem="{Binding SelectedQuantity, Mode=TwoWay}" SelectionMode="Single" ItemsSource="{Binding Quantities}" />
ViewModel:
private ProductionQuantityItemViewModel _selectedQuantity;
public ProductionQuantityItemViewModel SelectedQuantity
{
get
{
if (_selectedQuantity == null && _project.CurrentQuantityVariantId.HasValue)
{
_selectedQuantity = _quantities.FirstOrDefault(q => q.QuantityVariant.Identity == _project.CurrentQuantityVariantId.Value);
}
return _selectedQuantity;
}
set
{
_selectedQuantity = value;
_project.CurrentQuantityVariantId = _selectedQuantity.QuantityVariant.Identity;
RaisePropertyChanged(() => SelectedQuantity);
_eventAggregator.GetEvent<ProductionQuantityChangedEvent>().Publish(_selectedQuantity.QuantityVariant.ProductionQuantity);
}
}
SelectedItem is binding to ViewModel, but when I set SelectedQuantity in ViewModel I don't get any graphical representation in UI.
What I'm trying to achieve is that when I load table that row is selected (based on data in DB). In this example row #2.
http://gyazo.com/38e88488d872989beb03b447a6e545d6