We are populating Carousel control with multiple Radchart at runtime.
In XAML code one single RadChart is defined in the DataTemplate and that DataTemplate is the ItemTemplate of the RadCarousel
In the code behind we are binding the RadCarousel with Collection of data. Each item in the collection corresponds to one RadChart data.
radCarousel.ItemsSource = CountyComparisonList();
Each CountyComparison class has a DataSeries property and we are populating DataSeries with multiple data point as bar series and adding in the Collection.
Say first object in the collection gets populated with 6 data point and second object has two data point and third has one data point. So we need to change the width of each Radchart because they dont have equal number of bars.
In each rad chart we are displaying multiple bar series.
Problem is we are not able to adjust width and height of each individual RadChart populated in the RadCarousel.
How do we do that?
Thanks in advance for any Help
Manidipa
I´m trying to set styling on RichTextBox, but no styling is applied. Telerik styling is not supported for RichTextBox?
My code example:
<
Window
x:Class
=
"Richtextboxstyling.MainWindow"
xmlns:telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
Title
=
"MainWindow"
Height
=
"350"
Width
=
"525"
>
<
Grid
>
<
RichTextBox
telerik:StyleManager.Theme
=
"Office_Silver"
Height
=
"140"
VerticalScrollBarVisibility
=
"Auto"
HorizontalAlignment
=
"Stretch"
VerticalAlignment
=
"Stretch"
/>
</
Grid
>
</
Window
>
I have a Prism app which uses the BackGroundWorker for loading data into a DataTable and then binding the DataTable.DefaultView to the ItemSource of a RadGridView. Often when I start the application, I get blank rows added into the grid. Any idea why I get blank rows when I run the application sometimes but see actual data other times? See XAML below:
<
UserControl
x:Class
=
"OrganizationalUnitModule.Views.OUList"
xmlns:telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
xmlns:my
=
"clr-namespace:OrganizationalUnitModule.Presenter"
xmlns:telerikData
=
"clr-namespace:Telerik.Windows.Data;assembly=Telerik.Windows.Data"
xmlns:telerikControls
=
"clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls"
mc:Ignorable
=
"d"
d:DesignHeight
=
"300"
d:DesignWidth
=
"300"
>
<
UserControl.DataContext
>
<
my:OUListBWPresenter
/>
</
UserControl.DataContext
>
<
Grid
>
<
Grid.RowDefinitions
>
<
RowDefinition
Height
=
"80"
/>
<
RowDefinition
Height
=
"40"
/>
<
RowDefinition
Height
=
"600"
/>
</
Grid.RowDefinitions
>
<
Border
Grid.Row
=
"0"
Margin
=
"0,0,0,0"
VerticalAlignment
=
"Top"
Height
=
"80"
Width
=
"Auto"
>
<
Border.Background
>
<
LinearGradientBrush
EndPoint
=
"0.5,1"
MappingMode
=
"RelativeToBoundingBox"
StartPoint
=
"0.5,0"
>
<
GradientStop
Color
=
"#FFEEF3EB"
Offset
=
"1"
/>
<
GradientStop
Color
=
"#FF0B72B4"
/>
<
GradientStop
Color
=
"#FF549BC5"
Offset
=
"0.323"
/>
<
GradientStop
Color
=
"#FFA4C9D8"
Offset
=
"0.677"
/>
</
LinearGradientBrush
>
</
Border.Background
>
</
Border
>
<
Border
Grid.Row
=
"1"
Margin
=
"0,0,0,0"
VerticalAlignment
=
"Top"
Height
=
"40"
Width
=
"Auto"
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
telerikControls:RadButton
Content
=
"Mode"
Height
=
"30"
Width
=
"80"
Margin
=
"15,5,0,5"
/>
<
telerikControls:RadButton
Content
=
"Load"
Height
=
"30"
Width
=
"80"
Margin
=
"15,5,0,5"
Command
=
"{Binding LoadCommand}"
/>
<
telerikControls:RadButton
Content
=
"Cancel"
Height
=
"30"
Width
=
"80"
Margin
=
"15,5,0,5"
Command
=
"{Binding CancelCommand}"
/>
</
StackPanel
>
</
Border
>
<
Border
Grid.Row
=
"2"
Margin
=
"12,12,10,12"
>
<
telerik:RadGridView
x:Name
=
"OUGridView"
AutoGenerateColumns
=
"True"
ItemsSource
=
"{Binding Path=OrganizationalUnitsDT.DefaultView}"
IsBusy
=
"false"
Grid.Row
=
"2"
SelectionMode
=
"Multiple"
Margin
=
"0,0,0,0"
Height
=
"Auto"
Width
=
"Auto"
>
</
telerik:RadGridView
>
</
Border
>
</
Grid
>
</
UserControl
>