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.
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.
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!
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
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!
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
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();
}
I am learning game programming in C# with WPF using MSVS-2022.
For this MSVS-2022 offers two types of project:
WPF 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?