What is the easiest way to do this?
I tried to get a template copy, but without success. May be overwriting the ThemeResource?
Thank you!
<telerikInput:RadCalendar SelectedDateRange="{x:Bind DataRange,Mode=TwoWay}" DisplayMode="MonthView" SelectionMode="Multiple"/>
public sealed partial class MainPage : Page
{
private CalendarDateRange? dateRange = new CalendarDateRange(new DateTime(2019,3,1),new DateTime(2019,3,20));
public CalendarDateRange? DataRange
{
get => dateRange;
set
{
dateRange = value;
}
}
public MainPage()
{
this.InitializeComponent();
}
}
My question is how to do the selection operation on this control that will change the DataRange property value correctly? For now, the startdate and enddate always are the same value when I do the selection on the control.
In my RadDataGrid, I have to use a DataGridTemplateColumn because the Itemssource of my combobox is a collection that is a property of the object represented by the grid row. I've got it working except for the fact that the combo box is always editable. In other words, the box and dropdown arrow are always visible.
In a regular combobox column on a RadDataGrid the combo box is not visible unless you double click on the column. Until you click, the column just displays the selected item. In my columns, the box and dropdown arrow are always visible, before and after you click in or out of the column.
How can I change this to the typical behavior? I want the user to have to click in the column before the box and dropdown arrow become visible. Before that, the column just display the selected item. Thanks for your help.
<tg:DataGridTemplateColumn SizeMode="Auto">
<tg:DataGridTemplateColumn.CellContentTemplate>
<DataTemplate>
<ComboBox Width="220"
ItemsSource="{Binding Path=ItemCategory.Items, Mode=OneWay}"
SelectedItem="{Binding Products, Mode=TwoWay}"
SelectedValue="{Binding Products.Id, Mode=OneWay}"
SelectedValuePath="Id"
DisplayMemberPath="ItemName">
</ComboBox>
</DataTemplate>
</tg:DataGridTemplateColumn.CellContentTemplate>
<tg:DataGridTemplateColumn.Header>
<TextBlock.Text = "Item Category"/>
</tg:DataGridTemplateColumn.Header>
</tg:DataGridTemplateColumn>
I discovered some strange behavior in the RadNumericBox control. Values in the control are being changed while simply scrolling through a list.
I have created a minimal repro of the issue at the following repository:
https://github.com/EddieLotter/RadNumericBox.Anomaly
Please have a look and see if it is something I am doing incorrectly or if there is a problem with the control.
Thanks.
I draw solid lines
I want dotted lines
my code from control is
telerik:RadCartesianChart Name="rccFloor" PaletteName="DefaultLight">
<telerik:RadCartesianChart.HorizontalAxis>
<telerik:DateTimeContinuousAxis LabelFitMode="Rotate" LabelFormat="{}{0:dd MMM}" >
</telerik:DateTimeContinuousAxis>
</telerik:RadCartesianChart.HorizontalAxis>
<telerik:RadCartesianChart.VerticalAxis>
<telerik:LinearAxis/>
</telerik:RadCartesianChart.VerticalAxis>
<telerik:RadCartesianChart.Behaviors>
<telerik:ChartTrackBallBehavior InfoMode="Multiple"/>
</telerik:RadCartesianChart.Behaviors>
<telerik:RadCartesianChart.Annotations>
<telerik:CartesianGridLineAnnotation Name="rglaFloor"
Axis="{Binding ElementName=rccFloor, Path=VerticalAxis}"
Value="154" Stroke="LightGreen" StrokeThickness="3"/>
</telerik:RadCartesianChart.Annotations>
</telerik:RadCartesianChart>
and i add line in my graph with this code
LineSeries lineSeries = new LineSeries();
lineSeries.Name = "grafico" + year.ToString();
lineSeries.LegendTitle = year.ToString();
lineSeries.ItemsSource = historyList;
lineSeries.CategoryBinding = new PropertyNameDataPointBinding() { PropertyName = "Date" };
lineSeries.ValueBinding = new PropertyNameDataPointBinding() { PropertyName = "Simulado" };
lineSeries.DisplayName = year.ToString();
this.rccFloor.Series.Add(lineSeries);
how draw line dotted with that code ??
Thangs
This one is easy to setup when using the 'Windows Template Studio (Universal Windows)' project type. Make use to check 'Telerik Data Grid' of coarse.
Alter the SampleOrder class to be an Observable class of itself:
public class SampleOrder : ObservableCollection<SampleOrder>
Then in the TelerikDataGridPage.xaml edit to add a bound column:
<tg:DataGridTemplateColumn Header="Status">
<tg:DataGridTemplateColumn.CellContentTemplate>
<DataTemplate>
<TextBlock Text="{Binding Status}" HorizontalAlignment="Center" VerticalAlignment="Center"/>
</DataTemplate>
</tg:DataGridTemplateColumn.CellContentTemplate>
</tg:DataGridTemplateColumn>
Now run and this will generate a StackOverflowException. Obviously the issue is with the bound class being a list of itself. I have my own custom class that behaves like this and I need to bind it the RadDataGrid please help.
Using just the plain PropertyName 'binding' everything is ok. However, I need to be able to control text alignment, use converters, ...
<tg:DataGridTextColumn PropertyName="Status" />
I'm using a datagrid bound to an observablecollection. I'd like to add a cartesianchart, that mirrors the datagrid.
Any filtering applied to the datagrid should also be applied to the chart.
How do I do this?
Hi,
Is it possible to set the date to empty from the ui?