Telerik Forums
UI for WPF Forum
1 answer
12 views

Hello,

we currently use a HeatMap for our C# WPF (.NET Core) project to visualize data with a custom HeatMapDefinition.
Now we want the HeatMap to show a selection border for the selected cell, but this is not working for us as no selection border is shown.

The problem is easily reproducible in the xaml-sdk (with the CustomHeatMapSourceAndDefiniton project).
Just change in the MainWindow.xaml the RadHeatMap like this:
        <telerik:RadHeatMap x:Name="heatmap"
                            SelectionMode="SingleDataItem"
                            SelectedCellBorderColor="Magenta"
                            SelectedCellBorderThickness="5">
...

And limit the GetData parameters in MainWindow.xaml.cs to something like:
CustomHeatMapItem[,] data = this.GetData(20, 30);

According to the documentation, setting SelectionMode, SelectedCellBorderColor and SelectedCellBorderThickness like this should be sufficient, but in our test no border was drawn.

We tested in our project with a CategoricalDefinition and there the selection does work.

Looking into the source code of the HeatMap, the HeatMapColorGrid should be responsible to draw the selection border in different combinations (with and without hover, etc).
In the method RedrawAllCells() for example:
this.DrawSelectedCell(rowIndex, columnIndex, intColor);

However those calls all seem gated by if-checks with a call to this.Definition.IsCellSelected(rowIndex, columnIndex).

Which calls the method IsCellSelected from the current definition casted as HeatMapDefinition.
This method in the HeatMapDefinition always returns false and is internal, so we cannot override it within our derived custom HeatMapDefinition (as opposed to e.g. CategoricalDefinition, which overrides it).

So the question is, how do we get the HeatMap to draw the selection border, if we cannot tell it that the cell is selected?
Or did we miss something?

Martin Ivanov
Telerik team
 answered on 09 Apr 2024
1 answer
17 views

Hello,

I have a floating RadPane, I need to identify when the user stops dragging it. It can be still floating and and not docked.

Stenly
Telerik team
 answered on 08 Apr 2024
1 answer
15 views

Hello,

We are developing a medical system for hospitals. One of the functionalities is to allow users to use an editor or designer to create interactive documents such as referrals, patient questionnaires, etc. It is important that such a document could be printed, e.g. in A4 format.

Which controls will help us build designer documents?

Greetings

Jarek

Dimitar
Telerik team
 answered on 08 Apr 2024
0 answers
15 views

I have been trying to use a VirtualQueryableCollectionView with a RadGridView but no matter what I do, the grid view is always empty.

// Person is an entity.
public class Person
{
    public string Name { get; set; }
    public string Dept { get; set; }
    public double Salary { get; set; }
}

public VirtualQueryableCollectionView PeopleView { get; set; }

// dbContext is an OData DataServiceContext. peopleQuery has a Count() of 1000 items.
IQueryable<Person> peopleQuery = dbContext.Person.OrderBy(x => x.Name);
PeopleView = new VirtualQueryableCollectionView(peopleQuery) { LoadSize = 50 };    
OnPropertyChanged(nameof(PeopleView));
<telerik:RadGridView AutoGenerateColumns="True"
                     ItemsSource="{Binding PeopleView}" />
But the grid view is empty. Just wondering what I'm doing wrong. Thank you.
Wizard6650
Top achievements
Rank 1
Iron
 updated question on 06 Apr 2024
1 answer
18 views

Using .NET 6 and version 2024.1.312 of DataVisualization.for.Wpf.Xaml. Compiling with this reference gives this warning:

warning NU1603: Telerik.Windows.Controls.DataVisualization.for.Wpf.Xaml 2024.1.312 depends on System.ServiceModel.Http (>= 6.0.2) but System.ServiceModel.Http 6.0.2 was not found. An approximate best match of System.ServiceModel.Http 6.1.0 was resolved.

Nuget prefers the lowest version specified apparently and there is no 6.0.2 in the feed:

https://www.nuget.org/packages/System.ServiceModel.Http/6.0.0#versions-body-tab

I think the fix here is for the nuget package to require a minimum version that does exist in the feed. Here is a detailed discussion:

https://github.com/NuGet/Home/issues/5764

Martin Ivanov
Telerik team
 answered on 05 Apr 2024
1 answer
16 views
Is there a way to delete all rows inside a RadGridView after a button event has been pressed?
The documentation shows how to delete the row/rows via keyboard(from a user) or manually but didn't found via code

Example: The user presses a button that deletes all text inside textboxes including the rows data inside the RadGridView
Martin Ivanov
Telerik team
 answered on 04 Apr 2024
1 answer
17 views

hello,

           Dash line style connector and simple line style connector draw together in draw in one diagram.

           Diagram binding using datasource.

Martin Ivanov
Telerik team
 answered on 04 Apr 2024
0 answers
11 views


  <Style x:Key="CrashPager"
         TargetType="telerik:RadDataPager"
         BasedOn="{StaticResource {x:Type telerik:RadDataPager}}">
      <Setter Property="Margin"
              Value="0,0,0,0" />
      <Setter Property="Padding"
              Value="0,0,0,0" />
      <Setter Property="Height"
              Value="Auto" />
      <Setter Property="VerticalAlignment"
              Value="Top" />
      <Setter Property="VerticalContentAlignment"
              Value="Top" />
  </Style>

 

The code above has no margin and no padding.
Something is chopping the bottom from the RadDataPager control.
My guess is that this is being caused by the theme.
How can I get to show the control correctly?

 

Paul
Top achievements
Rank 2
Iron
Iron
Iron
 asked on 04 Apr 2024
1 answer
12 views

Hi Team,

I'm trying to add a RadNotifyIcon into my telerik wpf project, but it keeps throwing the error  below in xaml file

"the name RadNotifyIcon does not exist in the current namespace".

    <telerik:RadNotifyIcon x:Name="NotifyIcon"
                                       ShowTrayIcon="False"
                                       TrayIconSource="/NotifyIcon;component/Icons/TelerikWPFNotifyIcon.ico"
                                       PopupContentTemplate="{StaticResource NotifyIconPopupContentTemplate}" />

I did follow the below options , but still not working.

  1. clean and rebuild project
  2. adding reference to the telerik.windows.controls and telerik.windows.controls.navigation
  3. deleting obj and bin folder and rebuild project
  4. close and open visual studio
  5. restart my windows 
  6. change build platform to x86 from anycpu and vice versa.

the visual studio version I'm using is Microsoft Visual Studio Community 2022 (64-bit) - Current, Version 17.4.3

Any suggestion will be helpful.

Thanks,

Lenin.

 

 

Dimitar
Telerik team
 answered on 03 Apr 2024
1 answer
14 views

Hello Telerik Team,
We are using Telerik 2023.2.718.45.

If I use PivotFieldList, it is not showing up in the UI for the above version.
But if I try the older version 2020.3.915.45, it is working good.
I don't know what is wrong in the new one.

I have attached the sample project which uses the latest version.
Please refer it and let us know the solution for the same.

I have also attached the screenshot of the UI of both versions.


Thanks,
Muhammad Azhar Shah

Stenly
Telerik team
 answered on 02 Apr 2024
Narrow your results
Selected tags
Tags
+? more
Top users last month
Dominik
Top achievements
Rank 1
Giuliano
Top achievements
Rank 1
Dominic
Top achievements
Rank 1
Glendys
Top achievements
Rank 1
Iron
NoobMaster
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Dominik
Top achievements
Rank 1
Giuliano
Top achievements
Rank 1
Dominic
Top achievements
Rank 1
Glendys
Top achievements
Rank 1
Iron
NoobMaster
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?