Telerik Forums
UI for WPF Forum
0 answers
37 views

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>

Neil N
Top achievements
Rank 2
Iron
Iron
Veteran
 asked on 07 Jul 2025
0 answers
14 views

Hi,

Is it possible to get the start and end of the selected time on mouse selection event?

 

Regards,

kk

kk
Top achievements
Rank 1
 asked on 04 Jul 2025
0 answers
31 views

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.

Clint
Top achievements
Rank 1
Iron
Iron
Iron
 asked on 30 Jun 2025
0 answers
27 views

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.

Shawn
Top achievements
Rank 1
Iron
Iron
 asked on 30 Jun 2025
0 answers
23 views

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;
        }
    }
}

Shawn
Top achievements
Rank 1
Iron
Iron
 asked on 27 Jun 2025
1 answer
28 views

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"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
           xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
        xmlns:local="clr-namespace:GaugeTest"
        mc:Ignorable="d"
        Title="MainWindow" Height="450" Width="800" x:Name="TheWindow"
        >
    <Grid Margin="0" x:Name="MainV" >
        <Viewbox x:Name="VBox" 
                HorizontalAlignment="Center" VerticalAlignment="Center"                    
                Stretch="Uniform">

            <telerik:RadRadialGauge Height="{Binding ElementName=MainV, Path=ActualHeight}" Width="{Binding ElementName=MainV, Path=ActualWidth}">
                <telerik:RadialScale   Radius="1"  
                    Min="0" 
                    Max="30"
                    MajorTickStep="5"
                    Foreground="Black"
                             Stroke="Black"
                             StrokeThickness="1"
                             Fill="White"                 
                             >
                    <telerik:RadialScale.Indicators >
                        <telerik:Needle Name="needle" Foreground="Black" Value="15" />
                        <telerik:Pinpoint Foreground="Black"/>
                    </telerik:RadialScale.Indicators>

                </telerik:RadialScale>
            </telerik:RadRadialGauge>
        </Viewbox>
    </Grid>
</Window>
 
Martin Ivanov
Telerik team
 answered on 26 Jun 2025
0 answers
47 views

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");
SL.YValueBinding = new PropertyNameDataPointBinding("Y");
SL.ItemsSource = PlotPen.data;

 

Thanks, Vern

Vern
Top achievements
Rank 1
 asked on 24 Jun 2025
1 answer
61 views
We use a Telerik via NuGet packages.  All of our developers have followed Telerik's instructions to build by putting our license files in our personal folders here.

%appdata%/telerik 

This all works just fine.

However our nightly build is performed by a service account.  Where do I put the telerik-license.txt file for that?  I do not want to add it to the project.   

Is there some global folder -- available to ALL users -- that the Telerik build process can copy it from?  Something not  local to the current user like %appdata%?
Martin Ivanov
Telerik team
 answered on 05 Jun 2025
1 answer
43 views

Hi,

I encountered the same issue as this - https://www.telerik.com/forums/radopenfolderdialog-is-super-slow

May I ask if there is any solution to date?

Regards

Martin Ivanov
Telerik team
 answered on 29 May 2025
0 answers
32 views

I want to customize GroupDescription to meet our needs. Here is the `EquipmentGroupDescription` class: public class EquipmentGroupDescription : GroupDescription { public override object GroupNameFromItem(object item, int level, CultureInfo culture) { var experiment = item as Experiment; if (experiment == null) return null; return experiment.EquipmentID; } } The `Experiment` class inherits from `Appointment`: public class Experiment : Appointment { public string ID { get; set; } public string Name { get; set; } public string EquipmentName { get; set; } public Guid EquipmentID { get; set; } } I need to group `Experiment` by `EquipmentID` and `DateTime`. Here is the XAML: <telerik:RadScheduleView x:Name="scheduler" ActiveViewDefinitionIndex="1" FirstVisibleTime="12:00" GroupDescriptionsSource="{Binding CustomGroupDescriptions}" AppointmentsSource="{Binding Experiments}"> <telerik:RadScheduleView.GroupHeaderContentTemplate> <DataTemplate> <TextBlock Text="{Binding}" Foreground="White" FontWeight="Bold"/> </DataTemplate> </telerik:RadScheduleView.GroupHeaderContentTemplate> <telerik:RadScheduleView.AppointmentItemContentTemplate> <DataTemplate> <StackPanel> <TextBlock Text="{Binding Appointment.Name}" FontWeight="Bold" Foreground="White"/> <TextBlock Text="{Binding Appointment.EquipmentName}" Foreground="#DDD"/> </StackPanel> </DataTemplate> </telerik:RadScheduleView.AppointmentItemContentTemplate> <telerik:RadScheduleView.ViewDefinitions> <telerik:DayViewDefinition /> <telerik:WeekViewDefinition /> <telerik:MonthViewDefinition /> <telerik:TimelineViewDefinition DayStartTime="08:00" /> </telerik:RadScheduleView.ViewDefinitions> </telerik:RadScheduleView> ``` In the ViewModel,

private readonly Guid pivot1 = Guid.NewGuid();
private readonly Guid pivot2 = Guid.NewGuid();

 

var items = LoadAppointmentsSource();
Experiments = items.ToObservableCollection();
CustomGroupDescriptions = new ObservableCollection<EquipmentGroupDescription>
    {
        new EquipmentGroupDescription()
    };

 

private IEnumerable<Experiment> LoadAppointmentsSource()
{
    var items = new List<Experiment>
    {
        new Experiment()
        {
            Subject="1",
            Name="K Experiment 1",
            EquipmentID=pivot1,
            EquipmentName="Pivot",
            Start=DateTime.Today.AddDays(1).AddHours(12),
            End=DateTime.Today.AddDays(1).AddHours(13)
        },
        new Experiment()
        {
            Subject="2",
            Name="K Experiment 2",
            EquipmentID=pivot2,
            EquipmentName="Pivot",
            Start=DateTime.Today.AddDays(1).AddHours(12),
            End=DateTime.Today.AddDays(1).AddHours(13)
        },
    };
    var firstDate = items.Min(new Func<Experiment, DateTime>(p => p.Start.Date));

    var firstDay = CultureInfo.CurrentCulture.DateTimeFormat.FirstDayOfWeek;
    var dayOfWeekNumber = (int)DateTime.Today.DayOfWeek == 0 ? 7 : (int)DateTime.Today.DayOfWeek;
    var firstDayOfCurrentWeek = DateTime.Today.Subtract(TimeSpan.FromDays(dayOfWeekNumber - (int)firstDay));

    var offset = firstDayOfCurrentWeek - firstDate;

    foreach (var item in items)
    {
        item.Start += offset;
        item.End += offset;
    }

    return items;
}

private ObservableCollection<Experiment> experiments;

public ObservableCollection<Experiment> Experiments
{
    get { return experiments; }
    set
    {
        experiments = value;
        OnPropertyChanged();
    }
}

private ObservableCollection<EquipmentGroupDescription> customGroupDescriptions;

public ObservableCollection<EquipmentGroupDescription> CustomGroupDescriptions
{
    get { return customGroupDescriptions; }
    set
    {
        customGroupDescriptions = value;
        OnPropertyChanged();
    }
}

the Telerik version used is 2022.3.912.310. During debugging, I found that `GroupDescriptionsSource`

contains two objects: `EquipmentGroupDescription` and `DatetimeGroupDescription`.

However, `EquipmentGroupDescription` has 0 items in `GroupNames`, and its `GroupNameFromItem`

method is never called.

Jeffrey
Top achievements
Rank 1
Iron
 updated question on 29 May 2025
Narrow your results
Selected tags
Tags
GridView
General Discussions
Chart
RichTextBox
Docking
ScheduleView
ChartView
TreeView
Diagram
Map
ComboBox
TreeListView
Window
RibbonView and RibbonWindow
PropertyGrid
DragAndDrop
TabControl
TileView
Carousel
DataForm
PDFViewer
MaskedInput (Numeric, DateTime, Text, Currency)
AutoCompleteBox
DatePicker
Buttons
ListBox
GanttView
PivotGrid
Spreadsheet
Gauges
NumericUpDown
PanelBar
DateTimePicker
DataFilter
Menu
ContextMenu
TimeLine
Calendar
Installer and Visual Studio Extensions
ImageEditor
BusyIndicator
Expander
Slider
TileList
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
ProgressBar
Sparkline
LayoutControl
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
Licensing
WebCam
CardView
DataBar
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
VirtualKeyboard
HighlightTextBlock
Security
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?