Telerik Forums
UI for WPF Forum
0 answers
91 views

I am registering my own command for the editor to handle copy. It works but users have reported intermittent issues which I've finally tracked down but have not been able to figure out a workaround.

editor.KeyBindings.RegisterCommand(Me.CopyCommand, Key.C, modifierKeys:=ModifierKeys.Control)

The issue is that this only works if the user clicks within the cells of the spreadsheet. If they have clicked on the row or column headers to select cells, or the "select all" in the corner without first clicking within the cells, the command is never called. Once they have clicked in the cells it works to click on the headers, but if they click on a control entirely outside of the spreadsheet, then the problem repeats.

I've tried all kinds of workarounds, including key bindings and event handlers for all the key and previewkey events on the editor, the spreadsheet, and even the header controls. None of them are ever called. Something is eating the events.

 

Edit: I should add I removed all other key bindings and also tried different key combinations and it still doesn't work.

Steve
Top achievements
Rank 1
 updated question on 09 Feb 2024
0 answers
81 views

Hi Iam trying to set row numbers in radgrdview as like below.

Please let me know is there any way to do like below.

 

Regards,

Prabhakar k.

Prabhakar
Top achievements
Rank 1
 asked on 09 Feb 2024
1 answer
87 views

I want to use a RadTreeListView but the hierarchy does not contain children of the same type. Can I achieve this using RadTreeListView and have different properties at each hierarchy level?

Thank you!

Stenly
Telerik team
 answered on 08 Feb 2024
1 answer
78 views

Hello,

 

I found row-height setting API in WinForms, like Resizing Rows Programmatically- RadVirtualGrid - Telerik UI for WinForms .

But can't find it for WPF. I can make rows resizable by a user but can't do it programatically.

What I'd like to do is to control row height per cell content height.

 

Thanks.

Hanjo

Dimitar
Telerik team
 answered on 08 Feb 2024
14 answers
289 views
Hi, 

I have a grid that is shown in two different windows...(different windows same grid)
In one of the windows the grid is enabled and the user can edit the grid, but in the other window the grid is disabled.
My problem is that the grid scrollbar is disabled in the window where the grid is disabled...

I read the thread (hence the title on this post) on the forum about someone with a similar issue, but the solution for 
that case, a style targeting the GridViewRow, will not help me I'm afraid.

Is there another way to disable the grid but not the scroll?

Please advice!
Arseni
Top achievements
Rank 1
Iron
 answered on 08 Feb 2024
0 answers
107 views

Hello, 

I am using a RadTreeView component in a WPF application that looks like in the following photo. The hierarchy is: a Category can contain a list of SubCategories and a SubCategory contains a List of Activities that have some properties. I would like to transform my RadTreeView into a RadTreeListView or RadGridVew in order to beneficiate from SelectionUnit property and the navigation between cells from the keyboard but I could not find anything that meets by needs:

a component with cells only on the last level of the hierarchy, to be able to select a cell and edit it  and, if possible, to have a tabular header with details from the last level of the hirarchy.

 

Thank you!

Andreea
Top achievements
Rank 1
Iron
 updated question on 08 Feb 2024
0 answers
110 views

Hi,

I am working with RadGridView of Telerik

Source of the RadGridView is QueryableCollectionView (with OData)

Each column has filter option.

but the filter popup advance contains only "Select All" and not all the values of the column.

What should I do for see all the values in the filter advance?

Thanks

Adiel
Top achievements
Rank 1
 asked on 06 Feb 2024
0 answers
59 views

In my code I have a implemented method which in some cases can append new text for existing archive entry. But when I tried this code it gives me a System.ArgumentException: 'An item with the same key has already been added. Key: dir/file.csv'. This exception occurs in situations when given entryName will be something like this 'dir//file.csv''.  This small difference does not allow archive.GetEntry(entryName) return something else then null.

public void Insert(Stream stream, string entryName, bool append = false)
{
    using var baseStream = FileSystem.FileStream.New(ArchivePath, FileMode.Open, FileAccess.ReadWrite);
    using var archive = new ZipArchive(baseStream, ZipArchiveMode.Update, false, null, compressionSettings, encryptionSettings);

    var entry = archive.GetEntry(entryName); // null
    var entryStream = append
        ? entry?.Open() ?? archive.CreateEntry(entryName).Open() //exception cause already exists
        : archive.CreateEntry(entryName).Open(); 
    stream.Position = 0;
    if (append) entryStream.Seek(0, SeekOrigin.End);
    stream.CopyTo(entryStream);
    entryStream.Flush();
}

 

 

Kostiantyn
Top achievements
Rank 1
Iron
 asked on 06 Feb 2024
0 answers
72 views
I have a RadPane within my application that users can detach to create a floating window through a drag action. I am seeking a method to programmatically re-dock this floating RadPane to its original position within the application's main window, without resorting to dragging it manually. I aim to achieve this re-docking process entirely through code. Furthermore, I prefer a solution that does not involve restoring the layout from a stream, as commonly suggested. Is there a direct approach or function provided by the Telerik UI for WPF library that facilitates this? My objective is to manage the docking state of RadPane programmatically.
Ohad
Top achievements
Rank 3
Bronze
Iron
Iron
 asked on 05 Feb 2024
1 answer
1.0K+ views

I am learning game programming  in C# with WPF using MSVS-2022.

 For this MSVS-2022 offers two types of project:

WPF Application
A project creating a .NET WPF Application
and
WPF App (.NET Framework)
Windows Presentation Foundation client application

 

I googles these and still cannot figure out what is the difference - they both are for WPF application,

Which one is more suitable for game programming?

And will the code written using WPF Application  - could it be copied to a WPF App (.NET Framework) and run without corrections?

Dimitar
Telerik team
 answered on 05 Feb 2024
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?