Hello Telerik Team,
We have a close button in RadTabItem and all the tab items are added from the list in the ViewModel.
On clicking of the close button, the particular item will be removed from the list in the ViewModel that reflects in the UI.
Here we are having a scenario in which if the RadTabItem content is heavily loaded, then it takes more time to close.
Please suggest a way to avoid the performance issue while closing the RadTabItem.
The Telerik Version we are used are 2023.2.718
Thanks and Regards,
Muhammad Azhar Shah
Technical Lead
Hi,
If I select multiple rows in a table in a RichTextBox, the delete options become un-selectable. How can I change this to enable me to delete multiple selected rows from a table?
I've been pulling my hair out on this forever. I'm developing an application that has items with custom fields. Sometimes the user will choose an option from the custom field, sometimes they'll leave it blank. I'm trying to get a RadComboBox to display the selected item only if the item is not null. If the item is null, then the combobox should display nothing (or a notice it's blank).
What's happening is either the combobox does not keep in sync, or it defaults to the first item in the collection. I need it to be in sync, but not default to the first item in the list if the property is null. For example simplified view of my ViewModel:
Class CustomField: Id as Integer, Description as String
ViewModel:
Public Property Selection as CustomField
Public Options as ObservableCollection(Of CustomField)
WPF:
<telerik:RadComboBox x:Name="rcbDropDown"
ItemsSource="{Binding Path=Options}"
SelectedValuePath="Id"
DisplayMemberPath="Choice"
SelectedItem="{Binding Path=Selection, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
ClearSelectionButtonContent="Clear"
ClearSelectionButtonVisibility="Visible"
IsEditable="False"
IsReadOnly="{Binding Path=IsReadOnly}"
EmptyText="Not Set"
UpdateSelectionOnLostFocus="True"
/>
I've tried multiple combinations of SelectedItem Mode=TwoWay, OneWayToSource and IsSyncronizedWithCurrentItem=True/False/NULL
I either end up with them syncing and the combo box defaulting to the first item on the list automatically, and pushing that into the viewmodel when the record is viewed, or not syncing. I can't get it to only show the selected item when it's not null. Any help would be appreciated!
Hello everybody,
in my WPF Application I am using Telerik's RadGridView. Everything is working fine so far.
But there is a little design issue, I am facing with.
In my App I am using Windows11Theme, if I use this, every row in my GridView is starting with a blue column. Sadly I am not able to find out, how to change this color.
Previously, I was using Windows8Theme and there I used "StrongColor" property to change this color. But I am not able to find out, how to change it in Windows11Theme.
Attached is an image, which shows the row, I want to change.
Thanks for your support.
BR,
Alex
I'm looking for a generic solution for handling a common issue with RadNumericUpDown. When binding the Value property to a double (non-nullable) and the user clears the input (e.g., with Backspace), the control throws a "value cannot be converted" error.
I'm aware that changing the bound property to a double? would resolve this, but in my case, this is not feasible across the entire application due to the extensive refactoring it would require in legacy code.
As a senior WPF developer, I prefer generic solutions that can be applied globally—such as using an attached property via styles—so the fix can be inherited by all RadNumericUpDown instances.
I've considered using FallbackValue or TargetNullValue, but these aren't suitable as they require changes to each individual binding and would assign a default value, which is not ideal.
Since the value in the ViewModel doesn't actually change when the conversion fails, it seems reasonable to simply suppress the error and let the control revert to the source value.
Is there a way to implement an attached property that can detect this conversion failure and handle it gracefully—possibly by resetting the control’s value to the bound property from the DataContext?
Any suggestions or sample code would be greatly appreciated.
Thanks!
I'm having an issue when using the RadWizard where as the user tabs through the fields on the wizard page, when they get to the end and hit tab again, they expect the left most button in the footer to then take focus but instead it focuses on the footer container first. So they have to hit tab one more time to focus the button. Can this be fixed in the next version? What can I do in the meantime as a temporary fix?
I was able to duplicate the issue in the Telerik UI for WPF demo app. See screenshot for sample.
1. Go to the GridView | Filtering Configuration example in the Telerik WPF Demo app.
2. Choose Popup for Filtering Mode.
3. Open filtering for Company Name.
4. Alt-Tab to another app window.
5. Observe as filter window appears on top of the app's window.
Is this expected behaviour?
Hello
Please check the attached file: contextmenu.png
I want the 1st row icon column to have Padding=0,0 and Margin=0,0,0,0
Waiting for your reply
Hi,
how can we hide the Navigation Options from the RadOfficeNavigationBar?
<telerik:RadOfficeNavigationBar>
<telerik:RadOfficeNavigationBarItem Content="{lex:Loc Key=EditCommandText}"
Command="{Binding EditCommand}" >
<telerik:RadOfficeNavigationBarItem.Style>
<Style TargetType="telerik:RadOfficeNavigationBarItem">
<Setter Property="Visibility" Value="Visible" />
<Style.Triggers>
<DataTrigger Binding="{Binding FormMode}" Value="{x:Static tim:FormMode.Modify}">
<Setter Property="Visibility" Value="Collapsed" />
</DataTrigger>
</Style.Triggers>
</Style>
</telerik:RadOfficeNavigationBarItem.Style>
</telerik:RadOfficeNavigationBarItem>
<telerik:RadOfficeNavigationBarItem Content="{lex:Loc Key=SaveCommandText}"
Command="{Binding SaveCommand}" >
<telerik:RadOfficeNavigationBarItem.Style>
<Style TargetType="telerik:RadOfficeNavigationBarItem">
<Setter Property="Visibility" Value="Collapsed" />
<Style.Triggers>
<DataTrigger Binding="{Binding FormMode}" Value="{x:Static tim:FormMode.Modify}">
<Setter Property="Visibility" Value="Visible" />
</DataTrigger>
</Style.Triggers>
</Style>
</telerik:RadOfficeNavigationBarItem.Style>
</telerik:RadOfficeNavigationBarItem>
<telerik:RadOfficeNavigationBarItem Content="{lex:Loc Key=CancelCommandText}"
Command="{Binding CancelCommand}" >
<telerik:RadOfficeNavigationBarItem.Style>
<Style TargetType="telerik:RadOfficeNavigationBarItem">
<Setter Property="Visibility" Value="Collapsed" />
<Style.Triggers>
<DataTrigger Binding="{Binding FormMode}" Value="{x:Static tim:FormMode.Modify}">
<Setter Property="Visibility" Value="Visible" />
</DataTrigger>
</Style.Triggers>
</Style>
</telerik:RadOfficeNavigationBarItem.Style>
</telerik:RadOfficeNavigationBarItem>
</telerik:RadOfficeNavigationBar>
Regards,
Andreas
Hello
Question about ===> public ControlTemplate SeparatorTemplateKey {get;set}
I don't know how to use (public ControlTemplate SeparatorTemplateKey {get;set}
<
Window.Resources
>
<
ControlTemplate
x:Key
=
"SeparatorTemplate"
TargetType
=
"telerik:RadMenuItem"
>
<
Grid
HorizontalAlignment
=
"Stretch"
>
<
Rectangle
Fill
=
"Red"
Height
=
"20"
Width
=
"1"
VerticalAlignment
=
"Stretch"
/>
<
Rectangle
Fill
=
"Blue"
Height
=
"20"
Width
=
"1"
VerticalAlignment
=
"Stretch"
/>
</
Grid
>
</
ControlTemplate
>
</
Window.Resources
>
<
Grid
x:Name
=
"LayoutRoot"
Background
=
"White"
>
<
telerik:RadMenu
x:Name
=
"radMenu"
ClickToOpen
=
"False"
VerticalAlignment
=
"Top"
HorizontalAlignment
=
"Left"
Margin
=
"8,8,0,0"
>
<
telerik:RadMenuItem
Header
=
"File"
/>
<
telerik:RadMenuItem
Header
=
"Edit"
IsSeparator
=
"True"
Template
=
"{StaticResource SeparatorTemplate}"
/>
<
telerik:RadMenuItem
Header
=
"View"
/>
</
telerik:RadMenu
>
</
Grid
>
--------
using System.Windows.Controls;
public override ObservableCollection<MenuItem> GetMenu()
{
var contextmenuitem = new ObservableCollection<MenuItem>();
var eRNode = crateMenuItem("Report");
eRNode.Items.Add(createMenuItem("Sub"));
contextmenuitem.Add(Separate); <===
ControlTemplate template = new ControlTemplate();
template.key = "Tamplate";
contextmenuitem.Add(SeparatorTemplateKey(template)); <===ControlTemplate x:Key="Template" OF XAML.xaml File .... <==I don't know grammar. How do I write code?
contextmenuitem.Add(eRNode);
}