Hello,
I like to have the width of the WeekView always equal to the width of the current parrent. But as soon as I have more Appointments ScheduleView is displaying a horizontal scrollbar and I have to scroll horizontally to see the last days of the week. (See attached Screens)
Is there an option to shrink the Appointments in width so I see always the complete week without scrolling horizontally?
Kind regards,
Markus
Hello. I use a DataTemplate for labels in BarSeries. Please see XAML below:
<
telerik:RadCartesianChart
Grid.Row
=
"0"
Grid.Column
=
"0"
Visibility
=
"{Binding IsAbsoluteBarChartVisible}"
>
<!--Annotation line-->
<
telerik:RadCartesianChart.Annotations
>
<
telerik:CartesianGridLineAnnotation
Axis
=
"{Binding ElementName=verticalAxis}"
Value
=
"{Binding AnnotationValue}"
Label
=
"{Binding AnnotationLabel}"
Stroke
=
"Red"
StrokeThickness
=
"2"
DashArray
=
"8 2"
Visibility
=
"{Binding IsAnnotationVisible}"
>
<
telerik:CartesianGridLineAnnotation.LabelDefinition
>
<
telerik:ChartAnnotationLabelDefinition
Location
=
"Inside"
VerticalAlignment
=
"Bottom"
HorizontalAlignment
=
"Center"
>
<
telerik:ChartAnnotationLabelDefinition.DefaultVisualStyle
>
<
Style
TargetType
=
"TextBlock"
>
<
Setter
Property
=
"FontSize"
Value
=
"14"
/>
<
Setter
Property
=
"FontWeight"
Value
=
"DemiBold"
/>
<
Setter
Property
=
"Foreground"
Value
=
"Red"
/>
</
Style
>
</
telerik:ChartAnnotationLabelDefinition.DefaultVisualStyle
>
</
telerik:ChartAnnotationLabelDefinition
>
</
telerik:CartesianGridLineAnnotation.LabelDefinition
>
</
telerik:CartesianGridLineAnnotation
>
</
telerik:RadCartesianChart.Annotations
>
<!--X - axis-->
<
telerik:RadCartesianChart.HorizontalAxis
>
<
telerik:CategoricalAxis
/>
</
telerik:RadCartesianChart.HorizontalAxis
>
<!--Y - axis-->
<
telerik:RadCartesianChart.VerticalAxis
>
<
telerik:LinearAxis
x:Name
=
"verticalAxis"
Title
=
"{Binding Title_Y}"
Minimum
=
"{Binding AbsoluteMinimum_Y}"
Maximum
=
"{Binding AbsoluteMaximum_Y}"
MajorStep
=
"{Binding AbsoluteStep_Y}"
/>
</
telerik:RadCartesianChart.VerticalAxis
>
<!--Here is bar chart itself-->
<
telerik:RadCartesianChart.Series
>
<
telerik:BarSeries
ShowLabels
=
"True"
CategoryBinding
=
"Category"
ValueBinding
=
"Value"
ItemsSource
=
"{Binding Data}"
>
<
telerik:BarSeries.LabelDefinitions
>
<
telerik:ChartSeriesLabelDefinition
Margin
=
"0 20 0 0"
>
<
telerik:ChartSeriesLabelDefinition.Template
>
<!-- !!! HERE IS PROBLEMATIC TEMPLATE !!! -->
<
DataTemplate
>
<
TextBlock
Foreground
=
"White"
/>
</
DataTemplate
>
</
telerik:ChartSeriesLabelDefinition.Template
>
</
telerik:ChartSeriesLabelDefinition
>
</
telerik:BarSeries.LabelDefinitions
>
</
telerik:BarSeries
>
</
telerik:RadCartesianChart.Series
>
</
telerik:RadCartesianChart
>
But the labels are not visible in Bars in the chart in this case!
But when I comment the following code:
<
!--telerik:ChartSeriesLabelDefinition.Template
>
<
DataTemplate
>
<
TextBlock
Foreground
=
"White"
/>
</
DataTemplate
>
</
telerik:ChartSeriesLabelDefinition.Template--
>
Then the labels are visible nice. Why this has plase. Please help.
Hello,
I have RadDiagram with some shapes
I tried to arrange the shapes to be one on/under other and using send backward and bring forward actions, but there is a bug in that actions
The problem is that if I clicked send backward when the shape is already in backward and then click bring to front, I have to click the same times that I clicked send backward before (if I clicked 3 times after the shape was in backward, I have to click 3 times till the shape will bring to front)
I saw the bug also in telerik demos
How can I fix this bug?
Thanks
Hi,
I'm looking for the best component to show some Json code
As optional it should format and highlight the code
Thank you
I have the following implicit style:
<Style TargetType="telerik:GridViewCell" BasedOn="{StaticResource GridViewCellStyle}">
<Setter Property="FontFamily" Value="Segoe UI" />
<Setter Property="FontSize" Value="18" />
<Setter Property="Foreground" Value="Green" />
</Style>
However, only the foreground color changes - all font settings are ignored.
Searched this forum, I don't think it is Theme related, but I am using the Crystal theme
Hi, I am having an issue with a standalone RadMultiColumnComboBox. It needs to be populated differently each time I select a different entity (User) from a RadGridView. As I understand it the only way to do this is with events.
The problem is that I run into an exception when I try to clear the selected items from the MCCB (basically, I need to reset it), and add the new selections. I get various ObservableCollection changed event exceptions.
What is the correct way to do this to avoid these type of exceptions?
Thanks,
Ian
Here is the code I use so far:
Private
changingUser
As
Boolean
=
False
Private
Sub
RadMultiColumnComboBox_SelectionChanged(sender
As
Object
, e
As
SelectionChangeEventArgs)
Try
SyncLock
lockObject
If
changingUser
Then
e.Handled =
True
changingUser =
False
Exit
Sub
End
If
End
SyncLock
If
e.AddedItems.Count = 0
AndAlso
e.RemovedItems.Count = 0
Then
Exit
Sub
vm.AddRemoveRoles(e.AddedItems, e.RemovedItems)
Catch
ex
As
Exception
Finally
e.Handled =
True
End
Try
End
Sub
Private
Sub
Grid_SelectionChanged(sender
As
Object
, e
As
SelectionChangeEventArgs)
Try
SyncLock
lockObject
changingUser =
True
End
SyncLock
RolesBox.SelectedItems.SuspendNotifications()
'RolesBox is the RadMultiColumnComboBox
RolesBox.SelectedItems.Clear()
Dim
roles = vm.GetSelectedUserRoles
For
Each
r
In
roles
RolesBox.SelectedItems.Add(r)
Next
Catch
ex
As
Exception
Finally
RolesBox.SelectedItems.ResumeNotifications()
SyncLock
lockObject
changingUser =
False
End
SyncLock
End
Try
End
Sub
Here is an example of the exceptions I am getting:
System.InvalidOperationException:
'Cannot change ObservableCollection during a CollectionChanged event.'
at
System.Collections.ObjectModel.ObservableCollection`1.CheckReentrancy()
at
System.Collections.ObjectModel.ObservableCollection`1.RemoveItem(Int32 index)
at
System.Collections.ObjectModel.Collection`1.Remove(T item)
at
Telerik.Windows.Controls.RadMultiColumnComboBox.OnSelectedItemPropertyChanged(DependencyObject
d, DependencyPropertyChangedEventArgs args)
at
System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs
e)
at
System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs
e)
at
System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs
args)
at
System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex,
DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry,
EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean
coerceWithCurrentValue, OperationType operationType)
at
System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object
value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean
coerceWithCurrentValue, OperationType operationType, Boolean isInternal)
at
System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
at
Telerik.Windows.Controls.MultiColumnComboBox.SelectionBridge.ItemsSelectedInOwner(IEnumerable`1
addedItems)
at
Telerik.Windows.Controls.MultiColumnComboBox.SelectionBridge.OwnerSelectedItemsCollectionChanged(Object
sender, NotifyCollectionChangedEventArgs e)
at
System.Collections.Specialized.NotifyCollectionChangedEventHandler.Invoke(Object
sender, NotifyCollectionChangedEventArgs e)
at
System.Collections.ObjectModel.ObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs
e)
at
System.Collections.ObjectModel.ObservableCollection`1.InsertItem(Int32 index, T
item)