not sure why the size of the combobox arrow is that small , any idea how to change it?
Thanks,
Hello,
I noticed that the RadRichTextBox is not working as expected.
According to the documentation, SHIFT + ENTER should create a new line and ENTER a new paragraph.
For some reason the ENTER key is not working. My final go is to switch between SHIFT + ENTER and ENTER as described in the following link:
https://www.telerik.com/forums/wpf-radrichtextbox---swapping-enter-key-and-shift-enter-keys-behavior
How can I do that? the AcceptReturn is set to True, but the PreviewKeyDown event is not triggered for ENTER.
Hi Team,
In my LineSeries chart I want to change the color of the line dots based on a property of my bound list item.
The ItemSource of my LineSeries is an ObservableCollection<MonthlyTracking> . The MonthlyTracking class looks like this:
public class MonthlyTracking : INotifyPropertyChanged
{
[....]
private string monthString;
public string MonthString
{
get => this.monthString;
set
{
this.monthString = value;
this.OnPropertyChanged(nameof(this.MonthString));
}
}
private double actualValue;
public double ActualValue
{
get => this.actualValue;
set
{
this.actualValue = value;
this.OnPropertyChanged(nameof(this.ActualValue));
}
}
private int statusId;
public int StatusId
{
get => this.statusId;
set
{
this.statusId = value;
this.OnPropertyChanged(nameof(this.StatusId));
}
}
[....]
}
My XAML Code looks like this:
<telerik:RadCartesianChart>
<telerik:RadCartesianChart.HorizontalAxis>
<telerik:CategoricalAxis ShowLabels="True"/>
</telerik:RadCartesianChart.HorizontalAxis>
<telerik:RadCartesianChart.VerticalAxis>
<telerik:LinearAxis />
</telerik:RadCartesianChart.VerticalAxis>
<telerik:RadCartesianChart.Series>
<telerik:LineSeries ItemsSource="{Binding MonthlyTrackingList}" CategoryBinding="MonthString" ValueBinding="ActualValue" >
<telerik:LineSeries.DefaultVisualStyle>
<Style TargetType="Path">
<Setter Property="Width" Value="10" />
<Setter Property="Height" Value="10" />
<Style.Triggers>
<DataTrigger Binding="{Binding StatusId}" Value="1">
<Setter Property="Fill" Value="LimeGreen" />
</DataTrigger>
<DataTrigger Binding="{Binding StatusId}" Value="2">
<Setter Property="Fill" Value="LightCoral" />
</DataTrigger>
</Style.Triggers>
</Style>
</telerik:LineSeries.DefaultVisualStyle>
</telerik:LineSeries>
</telerik:RadCartesianChart.Series>
</telerik:RadCartesianChart>
The line is drawn in the chart. Unfortunately my binding in telerik:LineSeries.DefaultVisualStyle is wrong. The property StatusId is not found. Can you help me?
Kind regards,
Mario
Hi team,
I am looking for a simply way to hide / remove the additional Fieldfilter in the Filter Control (Popup) of a RadGridView. Is it possible to do this whithout creating a custom column or a complete custom control ?
I just to keep the distinct filter and the first FieldFilter
Thank you, have a nice day.
Regards
Matthieu
Hi I have two RadGridView , first one consists of basic controls it works well.
However, the other thing is that the page is created, but the controls are not displayed at all.
the only difference is that the second radgridview using CellTemplate.
<telerik:GridViewDataColumn HeaderCellStyle="{StaticResource CustomGridViewHeaderCellStyle}" Header="{Binding TimeFirst}" Width="0.8*" HeaderTextAlignment="Center" ColumnGroupName="L1CODE">
<telerik:GridViewDataColumn.CellTemplate>
<DataTemplate>
<Grid>
<telerik:RadProgressBar Height="20" Minimum="0" Maximum="3600" Value="{Binding L1CodeBeforeCnt3}" Style="{StaticResource l1code3progressbar}">
</telerik:RadProgressBar>
<TextBlock Text="{Binding L1CodeBeforeCnt3}" Margin="5 0">
</TextBlock>
</Grid>
</DataTemplate>
</telerik:GridViewDataColumn.CellTemplate>
</telerik:GridViewDataColumn>
and i used radpager like this.
<telerik:RadGridView
ItemsSource="{Binding PagedSource, ElementName=radDataPager}"
>
<telerik:RadDataPager x:Name="radDataPager"
Source="{Binding SignalCntData}"
PageSize="30"
/>
this code works well in consists of basic controls.
is it a problem with styling the progressbar? but without pager, just radgridview, there are no problem..
But I must display more than 150 rows, I must use RadPager somebody help..
Hello,
I created an attached property that scrolls into the selected item when the SelectedItem changed (using the public method of the RadGridView).
This behavior was added because the selected item may be changed from other view. The RadGridView multi selection is enabled.
I noticed that during grouping, the scrolling into the selected item works, but the row might be collpased when the group IsExpanded property is false.
There is an easy way to expand the group?
I want to detect the group by O(1) and then update the IsExpanded property to True.
I am wondering what will happend if there are many groups? should I expand all of them or only the last one ?
I will be glad to know the easiest way for this.
* The performance is extremelly important so we should take into consideration that maybe the user selects a lot of items (let's say 250 out of 10000) so the SelectedItem will change a lot.
Hello,
In the RichTextBox, in the Table, what is the best way to check that TableRow.Height is changing?
How to prevent the change or set specific value?
Thank you.
I want to create a RadFixedDocument with a table (see screenshot). Thereby the table is created dynamically:
Table headerTable = new Table();
Telerik.Windows.Documents.Fixed.Model.Editing.Border headerBorder = new Telerik.Windows.Documents.Fixed.Model.Editing.Border(1, BorderStyle.Single, new RgbColor(217, 217, 217));
headerTable.DefaultCellProperties.Borders = new TableCellBorders(headerBorder, headerBorder, headerBorder, headerBorder);
headerTable.DefaultCellProperties.Padding = new Thickness(5, 10, 5, 10);
TableRow headerRow = headerTable.Rows.AddTableRow();
TableCell vacationEntitlementHeaderCell = headerRow.Cells.AddTableCell();
vacationEntitlementHeaderCell.PreferredWidth = _maxWidth-100;
vacationEntitlementHeaderCell.Background = new RgbColor(217, 217, 217);
Block vacationEntitlementText = vacationEntitlementHeaderCell.Blocks.AddBlock();
SetTextProperties(vacationEntitlementText, new RgbColor(0, 0, 0), 12, new FontFamily("Verdana"), new RgbColor(217, 217, 217));
vacationEntitlementText.HorizontalAlignment = Telerik.Windows.Documents.Fixed.Model.Editing.Flow.HorizontalAlignment.Left;
vacationEntitlementText.VerticalAlignment = Telerik.Windows.Documents.Fixed.Model.Editing.Flow.VerticalAlignment.Center;
vacationEntitlementText.InsertText("Urlaubsanspruch: " + _localViewModel.Document.VacationEntitlement.ToString());
TableCell vacationPlannedHeaderCell = headerRow.Cells.AddTableCell();
vacationPlannedHeaderCell.PreferredWidth = _maxWidth-100;
vacationPlannedHeaderCell.Background = new RgbColor(217, 217, 217);
Block vacationPlannedText = vacationPlannedHeaderCell.Blocks.AddBlock();
SetTextProperties(vacationPlannedText, new RgbColor(0, 0, 0), 12, new FontFamily("Verdana"), new RgbColor(217, 217, 217));
vacationPlannedText.HorizontalAlignment = Telerik.Windows.Documents.Fixed.Model.Editing.Flow.HorizontalAlignment.Left;
vacationPlannedText.VerticalAlignment = Telerik.Windows.Documents.Fixed.Model.Editing.Flow.VerticalAlignment.Center;
vacationPlannedText.InsertText("Geplant: " + _localViewModel.Document.VacationDays.ToString());
TableCell vacationFreeHeaderCell = headerRow.Cells.AddTableCell();
vacationFreeHeaderCell.PreferredWidth = _maxWidth-100;
vacationFreeHeaderCell.Background = new RgbColor(217, 217, 217);
Block vacationFreeText = vacationFreeHeaderCell.Blocks.AddBlock();
SetTextProperties(vacationFreeText, new RgbColor(0, 0, 0), 12, new FontFamily("Verdana"), new RgbColor(217, 217, 217));
vacationFreeText.HorizontalAlignment = Telerik.Windows.Documents.Fixed.Model.Editing.Flow.HorizontalAlignment.Left;
vacationFreeText.VerticalAlignment = Telerik.Windows.Documents.Fixed.Model.Editing.Flow.VerticalAlignment.Center;
vacationFreeText.InsertText("Freie Urlaubstage: " + _localViewModel.Document.FreeVacationsDays.ToString());
TableCell workTimeColorCell = headerRow.Cells.AddTableCell();
workTimeColorCell.PreferredWidth = 150;
workTimeColorCell.Background = new RgbColor(217, 217, 217);
Block workTimeColorText = workTimeColorCell.Blocks.AddBlock();
SetTextProperties(workTimeColorText, new RgbColor(85, 85, 85), 24, new FontFamily("Verdana"), new RgbColor(85, 85, 85));
workTimeColorText.HorizontalAlignment = Telerik.Windows.Documents.Fixed.Model.Editing.Flow.HorizontalAlignment.Left;
workTimeColorText.VerticalAlignment = Telerik.Windows.Documents.Fixed.Model.Editing.Flow.VerticalAlignment.Center;
workTimeColorText.InsertText(" ");
TableCell WorkTimeHeaderCell = headerRow.Cells.AddTableCell();
WorkTimeHeaderCell.PreferredWidth = _maxWidth;
WorkTimeHeaderCell.Background = new RgbColor(217, 217, 217);
Block workTimeText = WorkTimeHeaderCell.Blocks.AddBlock();
SetTextProperties(workTimeText, new RgbColor(0,0,0), 12, new FontFamily("Verdana"), new RgbColor(217, 217, 217));
workTimeText.HorizontalAlignment = Telerik.Windows.Documents.Fixed.Model.Editing.Flow.HorizontalAlignment.Left;
workTimeText.VerticalAlignment = Telerik.Windows.Documents.Fixed.Model.Editing.Flow.VerticalAlignment.Center;
workTimeText.InsertText("Arbeitstage mit hinterlegter Sollarbeitszeit");
_editor.Position.Translate(_defaultLeftIndent, 80);
_editor.DrawBlock(headerTable, new Size(_maxWidth, double.PositiveInfinity));
Table table = new Table();
Telerik.Windows.Documents.Fixed.Model.Editing.Border border = new Telerik.Windows.Documents.Fixed.Model.Editing.Border(1, BorderStyle.Single, new RgbColor(204, 204, 204));
table.DefaultCellProperties.Borders = new TableCellBorders(border, border, border, border);
table.DefaultCellProperties.Padding = new Thickness(5, 10, 5, 10);
TableRow valueHeaderRow = table.Rows.AddTableRow();
TableCell monthCell = valueHeaderRow.Cells.AddTableCell();
monthCell.PreferredWidth = 150;
monthCell.Background = new RgbColor(217, 217, 217);
Block month = monthCell.Blocks.AddBlock();
SetTextProperties(month, new RgbColor(0, 0, 0), 12, new FontFamily("Verdana"), new RgbColor(217, 217, 217), true);
month.InsertText("Monat");
for (int i = 1; i < 32; i++)
{
TableCell dayCell = valueHeaderRow.Cells.AddTableCell();
dayCell.PreferredWidth = 50;
dayCell.Background = new RgbColor(217, 217, 217);
Block day = dayCell.Blocks.AddBlock();
SetTextProperties(day, new RgbColor(0, 0, 0), 12, new FontFamily("Verdana"), new RgbColor(217, 217, 217), true);
day.HorizontalAlignment = Telerik.Windows.Documents.Fixed.Model.Editing.Flow.HorizontalAlignment.Center;
day.InsertText(i.ToString());
}
foreach (var monthItem in _localViewModel.Document.Months)
{
TableRow monthRow = table.Rows.AddTableRow();
TableRow appointmentRow = table.Rows.AddTableRow();
TableCell monthHeaderCell = monthRow.Cells.AddTableCell();
monthHeaderCell.PreferredWidth = 120;
monthHeaderCell.Background = new RgbColor(217, 217, 217);
monthHeaderCell.RowSpan = 2;
Block monthName = monthHeaderCell.Blocks.AddBlock();
SetTextProperties(monthName, new RgbColor(0, 0, 0), 12, new FontFamily("Verdana"), new RgbColor(217, 217, 217));
monthName.VerticalAlignment = Telerik.Windows.Documents.Fixed.Model.Editing.Flow.VerticalAlignment.Center;
monthName.InsertText(monthItem.Name);
foreach (var dayItem in monthItem.Days)
{
if (dayItem.Plan == 0)
{
RgbColor background = new RgbColor(255, 255, 255);
TableCell monthDayCell = monthRow.Cells.AddTableCell();
Block dayText = monthDayCell.Blocks.AddBlock();
monthDayCell.PreferredWidth = 50;
if (dayItem.Template == Templates.U)
{
background = new RgbColor(0, 153, 188);
}
monthDayCell.Background = background;
SetTextProperties(dayText, new RgbColor(0, 0, 0), 8, new FontFamily("Verdana"), background);
dayText.HorizontalAlignment = Telerik.Windows.Documents.Fixed.Model.Editing.Flow.HorizontalAlignment.Center;
dayText.InsertText(dayItem.WeekdayStringShort.ToUpper());
TableCell appointmentDayCell = appointmentRow.Cells.AddTableCell();
//Block appointmentText = appointmentDayCell.Blocks.AddBlock();
appointmentDayCell.PreferredWidth = 50;
appointmentDayCell.Background = FormatAppointment(dayItem.Date);
//SetTextProperties(appointmentText, new RgbColor(0, 0, 0), 0, new FontFamily("Verdana"), new RgbColor(255, 255, 255));
//appointmentText.HorizontalAlignment = Telerik.Windows.Documents.Fixed.Model.Editing.Flow.HorizontalAlignment.Center;
//appointmentText.InsertText(String.Empty);
}
else
{
TableCell monthDayCell = monthRow.Cells.AddTableCell();
RgbColor rgbColorBackground = new RgbColor(85, 85, 85);
RgbColor rgbColorForeground = new RgbColor(255, 255, 255);
monthDayCell.Background = rgbColorBackground;
Block dayText = monthDayCell.Blocks.AddBlock();
monthDayCell.PreferredWidth = 50;
SetTextProperties(dayText, rgbColorForeground, 8, new FontFamily("Verdana"), rgbColorBackground);
dayText.HorizontalAlignment = Telerik.Windows.Documents.Fixed.Model.Editing.Flow.HorizontalAlignment.Center;
dayText.InsertText(dayItem.WeekdayStringShort.ToUpper());
TableCell appointmentDayCell = appointmentRow.Cells.AddTableCell();
//Block appointmentText = appointmentDayCell.Blocks.AddBlock();
appointmentDayCell.PreferredWidth = 50;
appointmentDayCell.Background = FormatAppointment(dayItem.Date);
//SetTextProperties(appointmentText, new RgbColor(0, 0, 0), 0, new FontFamily("Verdana"), new RgbColor(255, 255, 255));
//appointmentText.HorizontalAlignment = Telerik.Windows.Documents.Fixed.Model.Editing.Flow.HorizontalAlignment.Center;
//appointmentText.InsertText(String.Empty);
}
}
}
_editor.Position.Translate(_defaultLeftIndent, 130);
_editor.DrawBlock(table, new Size(_maxWidth, double.PositiveInfinity));
}
How can I set the height of the empty row below each day?