Hello,
I need to change the color of the RadVirtualKeyboardWindow's close button. At the moment it is not viewable very good. I use Material style around in my application, but it seems that it does not completly fit my needs.
I tried to change the button's beahviour like this:
<Style TargetType="telerik:RadVirtualKeyboardWindow">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="telerik:RadVirtualKeyboardWindow">
<Grid>
<!-- Fensterinhalt -->
<Border Background="{TemplateBinding Background}">
<ContentPresenter />
</Border>
<!-- Schließen-Button -->
<Button x:Name="PART_CloseButton"
Width="24" Height="24"
HorizontalAlignment="Right"
VerticalAlignment="Top"
Margin="5"
Background="DarkRed"
Foreground="White"
BorderBrush="Transparent"
Content="✕"
FontWeight="Bold"
Cursor="Hand"/>
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
But that actually lead to a very long button and could not change that either:
What can I try next?
Thanks and best regards,
Ferdinand
public static void Print(List<string> files)
{
using (MemoryStream stream = new MemoryStream())
{
using (PdfStreamWriter fileWriter = new PdfStreamWriter(stream, leaveStreamOpen: true))
{
foreach (string path in files)
{
using (PdfFileSource fileSource = new PdfFileSource(new MemoryStream(File.ReadAllBytes(path))))
{
for (int i = 0; i < fileSource.Pages.Length; i++)
{
PdfPageSource sourcePage = fileSource.Pages[i];
using (PdfPageStreamWriter resultPage = fileWriter.BeginPage(sourcePage.Size))
{
// set content
resultPage.WriteContent(sourcePage);
}
}
}
}
}
var pdfViewer = new RadPdfViewer();
PdfFormatProvider provider = new PdfFormatProvider();
RadFixedDocument document = provider.Import(stream);
pdfViewer.Document = document;
var printdlg = new PrintDialog();
printdlg.UserPageRangeEnabled = true;
printdlg.SelectedPagesEnabled = true;
if (printdlg.ShowDialog() == true)
{
var printSettings = new PrintSettings(Path.GetFileNameWithoutExtension("file"), false);
pdfViewer.Print(printdlg, printSettings);
}
}
}
I've been trying to remove the thin white border line with no luck, Any help?
<telerik:RadGridView
Margin="0,5,0,0" AutoGenerateColumns="False" BorderThickness="0" BorderBrush="{StaticResource LaGrey12}"
ColumnBackground="{StaticResource LaGrey12}"
GridLinesVisibility="None" IsReadOnly="True"
ItemsSource="{Binding ContactActivityNote.ContactActivityParticipants}"
ShowColumnHeaders="False">
<telerik:RadGridView.Columns>
<telerik:GridViewDataColumn
Width="Auto"
DataMemberBinding="{Binding ParticipationTypeId}"
Header="Type" />
<telerik:GridViewDataColumn
Width="*"
DataMemberBinding="{Binding AddressedTo}"
Header="Addressed To" />
</telerik:RadGridView.Columns>
</telerik:RadGridView>
Hi,
Is it possible to get the start and end of the selected time on mouse selection event?
Regards,
kk
I have a RadGridview displaying data from a datatable using autogenerated columns. I have EnableColumnVirtualization="True" and EnableRowVirtualization="True". When I scroll through the grid, columns and rows are autosizing to display data and everything looks good for the most part.
However, I have some columns that can be excessively wide, easily twice the width of the screen. The same for rows, I occasionally have a cell where the row is excessively high.
How can I set a max width for column and row to prevent excessively wide columns or tall rows? I tried setting MaxHeight and MaxWidth, but that also constrains the user to those settings if they do intentionally want to increase those values.
Is there a property I can set so that the RadMaskedNumericInput field only shows the thousands separator when the value gets over 1,000? It doesn't look great that the commas appear before the value is high enough to need them.
The data in all of our multi column combo boxes has a key value always as the first column in the grid. We want our users to be able to enter one of those key values then hit tab to select it. However, in some cases, just entering the key value doesn't cause the record with that key value to be at the top, so when the user hits tab it selects the top record instead of the record matching the key value entered.
See example below with US states as values:
In scenarios like these, I'd like to be able override the default selection logic and see if there is a record where the text in the search box exactly matches a key value, if so, select that value instead of the first value.
This was the last thing I tried inside the PreviewKeyDown event but it seemed to freeze and then not work as expected.
if (e.Key == System.Windows.Input.Key.Tab)
{
string typedText = MultiColumnComboBox
.FindChildByType<TextBox>()
.Text
.Trim();
if (MultiColumnComboBox.DropDownContentManager.DropDownElement is RadGridView gridView)
{
string keyFieldName = gridView.Columns[0].UniqueName;
var itemToSelect = gridView.Items
.OfType<DataRow>()
.FirstOrDefault(row =>
{
var keyValue = row[keyFieldName];
return keyValue != null &&
keyValue.ToString().Equals(typedText, StringComparison.OrdinalIgnoreCase);
});
if (itemToSelect != null)
{
gridView.SelectedItem = itemToSelect;
}
}
}
I have placed a RadialGauge with RadialScale inside a ViewBox. To get the RadialGauge to display correctly, I have bound the height and width of the RadialGauge to the actual height and width of the the Grid that holds the RadialGauge. The RadialGauge sizes correctly to the ViewBox although the labels actually get smaller as the Viewbox stretches to fill the window it is in. How do I get the Indicator label size to change when the size of the ViewBox is changed?
<Window x:Class="GaugeTest.MainWindow"I'm experiencing UI hang and slow chart updates when trying to plot ~10,000 points of scrolling data (10 traces, 1,000 points each) in a WPF .Net Core 8 application. This occurs with Direct2DRenderOptions and BitmapRenderOptions. I'm using a ScatterLineSeries ("SL") with data binding to a simple class with "X" and "Y" properties (see below). I'm adding points to each trace in real time and updating the HorizontalAxis Minimum and Maximum to make the data scroll across the screen. The update time is 5 FPS. The chart updating slows down at >=500 points in each trace and the UI starts to hang. I also reviewed the real time charting demo and have tried using the async data source described here xaml-sdk/ChartView/WPF/AsyncData at master · telerik/xaml-sdk with no improvement.
Any suggestions would be greatly appreciated.
SL.XValueBinding = new PropertyNameDataPointBinding("X");
Thanks, Vern