I always see CategoricalAxis being used on the X-Axis, however, I would like to plot multiple series based on Categories on the Y-Axis and have DateTime on the X-Axis.
How would I go about plotting:
var points = new ObservaleCollection<MyPoint>()
{
(new MyPoint(){ Category = "ID1", Time = now }),
(new MyPoint(){ Category = "ID2", Time = now }),
(new MyPoint(){ Category = "ID3", Time = now + 1 }),
(new MyPoint(){ Category = "ID1", Time = now + 1 }),
(new MyPoint(){ Category = "ID2", Time = now + 2 }),
etc, etc
};
I attached an image that shows what I'm trying to accomplish.
Hi,
I have a gridview that I have marked as readonly because I *only* want the user to be able to edit/add data via my rowdetails editor. According to the doc if I have the gridview marked as readonly they can't add a new row. I'm stuck. I need a way to add a row and have the user enter the new info via the rowdetails datattemplated editor. Any ideas?
Thanks ... Ed
I am trying to use a Labeltemplate on a DateTimeContinuousAxis but the texts are not located correctly on the axis. I am using the following WPF:
<
telerik:RadCartesianChart.HorizontalAxis
>
<
telerik:DateTimeContinuousAxis
MajorStep
=
"{Binding CategoryAxisMajorStep}"
MajorStepUnit
=
"{Binding CategoryAxisMajorStepUnit}"
LabelFitMode
=
"Rotate"
>
<
telerik:DateTimeContinuousAxis.LabelTemplate
>
<
DataTemplate
>
<
TextBlock
>
<
TextBlock.Text
>
<
MultiBinding
Converter
=
"{StaticResource DateTimeToStringTelerikChartMultiConverter}"
>
<
Binding
/>
<
Binding
Path
=
"DataContext.DateTimeFormat"
RelativeSource
=
"{RelativeSource FindAncestor, AncestorType={x:Type UserControl}}"
/>
</
MultiBinding
>
</
TextBlock.Text
>
</
TextBlock
>
</
DataTemplate
>
</
telerik:DateTimeContinuousAxis.LabelTemplate
>
</
telerik:DateTimeContinuousAxis
>
</
telerik:RadCartesianChart.HorizontalAxis
>
The chart looks as the attached file.
Can you help me to correctly display the labels.
Hello,
each time I click a link on the offline documentation, there is an error message that says:
This
page can’t be displayed
Make sure the web address //ieframe.dll/dnserrordiagoff.htm# is correct.
Look for the page with your search engine.
Refresh the page in a few minutes.
Hello,
In my project,the font of shape shown wrong in windows7,but in windows10,it shown right.
So I want to change the FontFamily list of the setting pane,how can I do it?
I am trying to show a ToolTipTemplate for LineSeries but don't get it to work.
If I try with Bar series instead it works just fine.
Code in xaml.cs file
private CartesianSeries CreateLineSeries(List<GraphPointDto> items, Brush brush)
{
var series = new LineSeries()
{
ItemsSource = items,
Stroke = brush,
ValueBinding = new PropertyNameDataPointBinding("Value"),
CategoryBinding = new PropertyNameDataPointBinding("DateTime"),
TooltipTemplate = this.Resources["MyToolTipTemplate"] as DataTemplate,
};
return series;
}
Code in xaml
Hi,
below is a stripped down version of my rowdetail editor using a raddataform with a rowdetails template.
I tried adding CommandButtonsVisibility="All" but it did nothing. I want to show add, delete, edit etc. I'm only getting the edit button.
Some more issues.
1. The OK and Cancel Buttons are not picking up the global button style I have set in app.xaml.
2. Is it possible to have the OK button fire the RowEditEnded event?
3. The cancel button does not cancel the changes made in the dataform. Changes made to the form are immediately reflected in the
RadGridView. I would have expected the cancel button to set things back to their original values. Am I missing something?
4. How do I get the radform to default to edit mode so that the user does not have to hit the edit button in the upper right corner first?
I've attached a screen shot.
Any help would be GREATLY appreciated.
Thanks ... Ed
<Grid.Resources>
<DataTemplate x:Key="RowDetailsTemplate">
<telerik:RadTabControl x:Name="SamplesTab" HorizontalAlignment="Left"
Margin="8" VerticalAlignment="Center">
<telerik:RadTabItem Header="Sample Details" DataContext="{Binding}">
<Grid Width="Auto" HorizontalAlignment="Stretch">
<Grid.RowDefinitions>
<RowDefinition />
<RowDefinition />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="auto" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<telerik:DataFormDataField Grid.Row="0" Grid.Column="0"
Label="Client Sample Id:"
DataMemberBinding="{Binding Sample.ClientSampleID, Mode=TwoWay }"
VerticalAlignment="Top" />
<telerik:DataFormComboBoxField Grid.Row="1" Grid.Column="0" Label="Priority:"
ItemsSource="{Binding RelativeSource={RelativeSource FindAncestor,
AncestorType={x:Type UserControl} },
Path=DataContext.Priorities}"
DisplayMemberPath="Value"
SelectedValuePath="Key"
DataMemberBinding="{Binding Sample.PriorityID, Mode=TwoWay }">
</telerik:DataFormComboBoxField>
</Grid>
</telerik:RadTabItem>
</telerik:RadTabControl>
</DataTemplate>
</Grid.Resources>
<telerik:RadGridView.RowDetailsTemplate>
<DataTemplate>
<telerik:RadDataForm CurrentItem="{Binding}" AutoGenerateFields="False"
EditTemplate="{StaticResource RowDetailsTemplate}"
NewItemTemplate="{StaticResource RowDetailsTemplate}"
ReadOnlyTemplate="{StaticResource RowDetailsTemplate}"
/>
</DataTemplate>
</telerik:RadGridView.RowDetailsTemplate>
Hi,
I use the RadScheduleView and I try to add an command to the TimeRuler line (on each date). I implement custom TimeRulerItemTemplateSelector like this :
TimeRulerItemTemplateSelector="{StaticResource CustomTimeRulerItemTemplateSelector}"
In this template, I use the HorizontalTimelineGroupTemplate with an TextBlock to format the text. This works great. I want to add an command to this TextBlock (or a button), but the command is never raised.
I have try with the InputBinding :
<
selectors:CustomTimeRulerItemTemplateSelector.HorizontalTimelineGroupTemplate
>
<
DataTemplate
>
<
TextBlock
TextAlignment
=
"Left"
Padding
=
"2,0"
>
<
TextBlock.Text
>
<
MultiBinding
Converter
=
"{StaticResource DateToStringFormatConverter}"
>
<
Binding
Path
=
"DateTime"
/>
<
Binding
Path
=
"DataContext.PlanningHelper.GroupHeaderStringFormat"
RelativeSource
=
"{RelativeSource AncestorType={x:Type ucPlanning1:PlanningList}}"
/>
</
MultiBinding
>
</
TextBlock.Text
>
<
TextBlock.InputBindings
>
<
MouseBinding
Command
=
"{Binding DataContext.TestCommand, RelativeSource={RelativeSource AncestorType={x:Type ucPlanning1:PlanningList}}}"
MouseAction
=
"LeftClick"
/>
</
TextBlock.InputBindings
>
</
TextBlock
>
</
DataTemplate
>
</
selectors:CustomTimeRulerItemTemplateSelector.HorizontalTimelineGroupTemplate
>
And with telerik:EventToCommandBehavior.EventBindings :
<
selectors:CustomTimeRulerItemTemplateSelector.HorizontalTimelineGroupTemplate
>
<
DataTemplate
>
<
TextBlock
TextAlignment
=
"Left"
Padding
=
"2,0"
>
<
TextBlock.Text
>
<
MultiBinding
Converter
=
"{StaticResource DateToStringFormatConverter}"
>
<
Binding
Path
=
"DateTime"
/>
<
Binding
Path
=
"DataContext.PlanningHelper.GroupHeaderStringFormat"
RelativeSource
=
"{RelativeSource AncestorType={x:Type ucPlanning1:PlanningList}}"
/>
</
MultiBinding
>
</
TextBlock.Text
>
<
telerik:EventToCommandBehavior.EventBindings
>
<
telerik:EventBinding
Command
=
"{Binding DataContext.TestCommand, RelativeSource={RelativeSource AncestorType={x:Type ucPlanning1:PlanningList}}}"
EventName
=
"MouseEnter"
/>
</
telerik:EventToCommandBehavior.EventBindings
>
</
TextBlock
>
</
DataTemplate
>
</
selectors:CustomTimeRulerItemTemplateSelector.HorizontalTimelineGroupTemplate
>
But my TestCommand is never call.
What's wrong with my code? How to implement command inside the TimeRuler?
Thanks for your help.
Hello,
I want to Change Deadline forecolor to Blue of Telerik Gantt view. Now it is in Red color.
Please help me.
Thanks in advance