Hi,
I'm using Telerik V2012.1.325.35 and I have a strange behaviour with my RadCarousel component.
In our application we have a RadGridView and beside de RadGridView we have a RadTabControl with 2 TabItems, in the first TabItem I have a RichTextBox and in the second RadTabItem I have a RadCarousel. When I click on one Item in my GridView, I load 2 images on disk, for both image, I create and object of type "InterDependencyImage" (definition at the end) and I added to my carousel using the following piece of code:
var img = pPdf as InterDependencyImage;
img.Image = new Image();
img.Image.Source = img.Frame;
theCarousel.Items.Add(img);
When the loading images process ended, I click on my RadTabItem containing my RadCarousel and I can see my 2 images. The first one is perfectly visible but the 2nd one is blank!!! If I scroll the blank image outside the RadCarousel and I scroll it back into the view portion of the RadCarousel, I can see it perfectly now!!!
I'm I missing something???
Thank's
public class InterDependencyImage
{
#region Contructors.
public InterDependencyImage()
{
No = 1;
TotalImages = 1;
Notes = "";
Type = "";
PrimaryImageGUID = Guid.Empty;
}
#endregion
#region Public properties.
public int No { get; set; }
public int TotalImages { get; set; }
public Image Image { get; set; }
public BitmapFrame Frame { get; set; }
public string Notes { get; set; }
public string Type { get; set; }
public Guid PrimaryImageGUID { get; set; }
#endregion
}
Is there a way to change the appointment item height in timeline view?
I tried with:
<
Style
x:Key
=
"CategoryStyle"
TargetType
=
"telerik:AppointmentItem"
>
<
Setter
Property
=
"Height"
Value
=
"100"
/>
</
Style
>
and when I compile+run, the height doesn't change.
Please advise.
<
telerik:RadGridView
ItemsSource
=
"{Binding ItemsView}"
AutoGenerateColumns
=
"False"
IsSynchronizedWithCurrentItem
=
"True"
ValidatesOnDataErrors
=
"InViewMode"
EditTriggers
=
"CellClick"
CanUserDeleteRows
=
"True"
CanUserInsertRows
=
"True"
>
<
telerik:RadGridView.Columns
>
<
telerik:GridViewComboBoxColumn
Header
=
"Currency"
DataMemberBinding
=
"{Binding CurrencyCode,UpdateSourceTrigger=PropertyChanged}"
ItemsSource
=
"{Binding Path=DataContext.AllCurrencyCodes,RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type UserControl}}}"
/>
<
telerik:GridViewDataColumn
Header
=
"Rate"
DataMemberBinding
=
"{Binding Rate,UpdateSourceTrigger=PropertyChanged,NotifyOnValidationError=True,ValidatesOnDataErrors=True}"
/>
</
telerik:RadGridView.Columns
>
</
telerik:RadGridView
>
<
telerik:GridViewDataColumn
Header
=
"Rate"
DataMemberBinding
=
"{Binding Rate,UpdateSourceTrigger=PropertyChanged,NotifyOnValidationError=True,ValidatesOnDataErrors=True}"
>
<
telerik:GridViewDataColumn.CellEditTemplate
>
<
DataTemplate
>
<
TextBox
Text
=
"{Binding Rate,UpdateSourceTrigger=PropertyChanged,NotifyOnValidationError=True,ValidatesOnDataErrors=True}"
/>
</
DataTemplate
>
</
telerik:GridViewDataColumn.CellEditTemplate
>
</
telerik:GridViewDataColumn
>
<
telerik:RadCartesianChart
Grid.Row
=
"1"
>
<
telerik:RadCartesianChart.Behaviors
>
<
telerik:ChartTrackBallBehavior
/>
<
telerik:ChartPanAndZoomBehavior
ZoomMode
=
"Horizontal"
/>
</
telerik:RadCartesianChart.Behaviors
>
<
telerik:LineSeries
ItemsSource
=
"{Binding PraGasProductionChartPoints}"
CategoryBinding
=
"Date"
ValueBinding
=
"Value"
>
<
telerik:LineSeries.HorizontalAxis
>
<
telerik:DateTimeContinuousAxis
Minimum
=
"{Binding MinimumChartDate}"
Maximum
=
"{Binding MaximumChartDate}"
LabelStyle
=
"{StaticResource labelFontStyle}"
MajorStepUnit
=
"Year"
MajorStep
=
"3"
LabelFormat
=
"yyyy"
/>
</
telerik:LineSeries.HorizontalAxis
>
<
telerik:LineSeries.VerticalAxis
>
<
telerik:LinearAxis
LabelFormat
=
"#,#"
/>
</
telerik:LineSeries.VerticalAxis
>
</
telerik:LineSeries
>
<
telerik:RadCartesianChart.Grid
>
<
telerik:CartesianChartGrid
MajorLinesVisibility
=
"XY"
/>
</
telerik:RadCartesianChart.Grid
>
</
telerik:RadCartesianChart
>