<telerik:RadBusyIndicator x:Name="radBusyIndicator"
Foreground="#ffffff"
IsBusy="{Binding IsBusy}">
I use the above when to show the busy indicator while saving.
After it has saved (IsBusy is false) I call Element.Focus(); but it does not focus on the element.
No element shows as being focused.
If I remove the line that sets IsBusy to true the focus works as expected.
Is there a workaround for this problem?
This should be trivial, but.... I see an old question about this at HorizontalContentAlignment doesn't work in UI for WPF | Telerik Forums. When I download the sample, it works as advertised, even if I upgrade to the latest. However, in my project I can't seem to get the text to right-justify. This is a direct copy of my XAML:
<telerik:RadNumericUpDown Grid.Row="9" Grid.Column="1" Width="100" NumberDecimalDigits="0" Value="{Binding MyIntField}" HorizontalContentAlignment="Right" />
And yet...
If I inspect the field in the live tree, "HorizontalContentAlignment" shows "Right".
What have I got wrong?
When reading https://docs.telerik.com/devtools/wpf/controls/radgridview/hierarchical-gridview/self-referencing-grid I was expecting that `Self-Referencing` RadGridView means it uses own columns and rest visual stuff to display all nested child RadGridViews. Since it references the same type in the underlying data on every hierarchy level (that is self-referencing), it's obviously should display all levels in the same way (as it displays itself on top-level).
Turned out it was not the case. Each child level requires own visual template, own columns with own styling. We have about 20 columns with heavy styling each (more than 500 lines in .xaml) for top-level `RadGridView`. Copy-pasting all that into `RadGridView.HierarchyChildTemplate` is not an option.
In your demo application, I saw that you add columns manually for a child `RadGridView` from `RadGridView1_DataLoading` handler in code-behind. I was hoping it was a mistake.
I was looking at the https://www.telerik.com/forums/preview-(and-stop)-selectionchanged post from 5 years ago. In the first answer, there was an attached solution to the problem. If using the ItemsSource binding, you could prevent the change by not firing the OnPropertyChanged event.
I loaded this project using the 2025Q1 dlls and while the SelectedItem may not technically update, the UI reflects that the item is selected. Is there an updated solution to this?
Hi,
The radwindow does not show up unless I put Style
=
"{DynamicResource RadWindowStyle}".
May I ask where do I put theme for my radwindow?
And how do I change the radwindowstyle? It shows up the minimize, close button on the left side but I would want it to put on the right side of the window.
Hello,
In our app we are using filtering through a RadGridView bound to a QueryableCollectionView that wraps an ObservableCollection. Now I'm trying to use that filtered QueryableCollectionView as the ItemSource for a VisualizationLayer in a RadMap so that the filter on the grid also applies to items shown on the map, but the bind fails with the following error: "System.ArgumentException: 'Telerik.Windows.Data.QueryableCollectionView' is not a valid value for property 'Source'."
I've attached a quick project replicating the issue with the relevant code in MainWindow.xaml:
<!-- Doesn't work -->
<telerik:VisualizationLayer ItemsSource="{Binding ItemViewModelsView }" ItemSelectionMode="None">
<telerik:VisualizationLayer.ItemTemplate>
<DataTemplate DataType="{x:Type local:ItemViewModel}">
<Ellipse Fill="Blue" Width="12" Height="12" telerik:MapLayer.Location="{Binding Location}"/>
</DataTemplate>
</telerik:VisualizationLayer.ItemTemplate>
</telerik:VisualizationLayer>
<!-- Also doesn't work pulling directly from the GridView -->
<telerik:VisualizationLayer ItemsSource="{Binding Items, ElementName=GridView }" ItemSelectionMode="None">
<telerik:VisualizationLayer.ItemTemplate>
<DataTemplate DataType="{x:Type local:ItemViewModel}">
<Ellipse Fill="Blue" Width="12" Height="12" telerik:MapLayer.Location="{Binding Location}"/>
</DataTemplate>
</telerik:VisualizationLayer.ItemTemplate>
</telerik:VisualizationLayer>
<!-- Works but isn't filtered -->
<telerik:VisualizationLayer ItemsSource="{Binding ItemViewModels }" ItemSelectionMode="None">
<telerik:VisualizationLayer.ItemTemplate>
<DataTemplate DataType="{x:Type local:ItemViewModel}">
<Ellipse Fill="Blue" Width="12" Height="12" telerik:MapLayer.Location="{Binding Location}"/>
</DataTemplate>
</telerik:VisualizationLayer.ItemTemplate>
</telerik:VisualizationLayer>
and the ViewModel:
public partial class MainWindowViewModel : ObservableObject
{
[ObservableProperty] private ObservableCollection<ItemViewModel> _itemViewModels;
public QueryableCollectionView ItemViewModelsView { get; private set; }
//...
}
It appears to me that the issue is because QueryableCollectionView is both an IEnumerable and a ICollectionView so when it tries to assign it to the MapItemsSource the CollectionViewSource.IsSourceValid() that's called during that assignment is returning false because it is an ICollectionView.
Is there a known workaround for this or suggested alternative to get the expected functionality?
Thanks!
RadGridView, for WPF .NET Framework 4.8, automatically hides rows that do not match the filter/search criteria after a row has been edited. How does one prevent the auto-filtering/searching?
A very important workflow for our customers is to search / filter for outliers and then edit the found rows. After they finish editing, they don't want the row to automatically disappear because of the search / filter doesn't match the row after the edits.
The customer only wants to search / filter if they actually initiated the action. They do not want auto searching and filtering.
Hey Telerik Team,
I'm working with the RadRichTextEditor in WPF and ran into a little issue. When I switch my keyboard to Arabic, I was expecting to see Arabic digits (٠١٢٣٤٥), but instead, it still shows the standard Western numbers.
Is there a way to enable Arabic digits when typing in Arabic? I’ve looked around but haven’t had much luck so far. If there's a setting or a workaround that could help, I’d really appreciate any pointers!
using System.Globalization;
Console.OutputEncoding = System.Text.Encoding.UTF8;
CultureInfo arabicCulture = new CultureInfo("ar-AE");
arabicCulture.NumberFormat.DigitSubstitution = DigitShapes.NativeNational;
arabicCulture.NumberFormat.NativeDigits = ["Ù ", "Ù¡", "Ù¢", "Ù£", "Ù¤", "Ù¥", "Ù¦", "Ù§", "Ù¨", "Ù©"];
//arabicCulture.CultureTypes = CultureTypes.
Thread.CurrentThread.CurrentCulture = arabicCulture;
Thread.CurrentThread.CurrentUICulture = arabicCulture;
int number = 12345;
Console.WriteLine(number.ToString(CultureInfo.CurrentCulture));