Create new Word-inspired project and add CommandExecuting event handler with the following code:
private void radRichTextEditor1_CommandExecuting(object sender, Telerik.WinForms.Documents.RichTextBoxCommands.CommandExecutingEventArgs e)
{
if (e.Command is Telerik.WinForms.Documents.RichTextBoxCommands.SaveCommand)
{
e.Cancel = true;
var newForm = new MainForm();
newForm.Show();
}
}
When I click on Save quick-button I expect to see new form active and in focus, but what actually happens is that new form is created, gets in focus briefly, and then the old form steals the focus. How can I fix the focus steal? I need new form to be non-modal.
In theory I should be able to do it if I call Show(this) instead of Show(), and in OnShown overload set Owner = null, but even though the active window now is the new form, the keyboard focus is still on old form (type something to see). I suspect there is some OnTimer interference. Do you have an adequate solution?
Hi,
is there a way to clear the selection completely in a VirtualGrid?
I have a simple VirtualGrid with SelectionMode=FullRowSelect and MultiSelect=true. When I use the ClearSelection method the arrow in the row header is still visible and also the last clicked cell (see the attached video in the zip file).
Thank you very much.
Emanuele
1.RadDropDownList:
How can I change the color of the RadDropDownListArrowButtonElement
when the mouse triggers the radDropDownList
control? I have not been able to find a way to modify this color.I try my best to solve it ,but it works not well.
How can I change the color of the dropdown content when the mouse hovers over it? I have also not been able to find a way to modify this color.
How can I remove the white shadow under the downward triangle? I want it to be entirely black without any white shadow.
2.RadSpinEditor:
When I use RadSpinEditor, I have the same questions in it.
How can I change the color of the dropdown content when the mouse hovers over it?
How can I remove the white shadow under the downward triangle?
Where are located the .tssp files for the current version of the Telerik controls for Winforms?
Hi,
is there a way to skip non-editable columns when I use "Tab" key to navigate the cells in WinfForms VirtualGrid?
I saw that for Kendo UI there is a solution (https://docs.telerik.com/kendo-ui/knowledge-base/grid-tabkey-navigation-exclude-noneditable-columns) but I cannot find anything for WinForms VirtualGrid.
Thank you very much.
Emanuele
Hi
I’m using WinForms RadDock implementing a host and a bunch of DocumentWindow tabs.
The issue I’m having is setting the undocked floating window text so that the window shown in the Taskbar displays the text set, I'm getting the taskbar entry but it's always blank. I’ve tried a few approaches and none are successful. See code below.
private void MainDockHost_FloatingWindowCreated(object sender, FloatingWindowEventArgs e)
{
// first attempt
e.Window.Text = "First Window";
// second attempt
CustomFloatingWindow customWindow = new CustomFloatingWindow(MainDockHost);
e.Window = customWindow;
customWindow.Text = "Second Window";
// third attempt
HostWindow hostWin1 = e.Window.Parent as HostWindow;
if (hostWin1 != null)
{
hostWin1.Text = "Third Window";
if (hostWin1.FloatingParent != null)
{
hostWin1.FloatingParent.Text = hostWin1.Text;
}
}
// forth attempt
HostWindow hostWin2 = customWindow.Parent as HostWindow;
if (hostWin2 != null)
{
hostWin2.Text = "Forth Window";
if (hostWin2.FloatingParent != null)
{
hostWin2.FloatingParent.Text = hostWin2.Text;
}
}
}
As I’m using a document window I understand a floating window is created with the document window inside it. The two HostWindow attempts in the code both result in a null.
Any help with this would be appreciated.
Thanks
Miles
Hi,
When I "left click" on a header of a page, the page is changed before I release the mouse click.
Also, when right clicking it's selecting/unselecting a page, it looks strange.
Before I override many things, how would you do to change this behavior in a clean way? We won't deactivate right-click because we do have context menu to save the opening tab on new view show.
Thanks a lot in advance!
Simon
Hi everyone,
I'm currently working with the RadRichTextEditor control in my C# WinForms application, and I need to customize the colors of the slide and background bar. Could someone guide me on the steps to change these colors? Additionally, if there's a way to achieve this directly through code, I'd greatly appreciate it if you could share a code snippet.
Thank you in advance for your help!
Best regards,
Kevin
Hi,
I saw that in GridView you can create a group for the column header (https://docs.telerik.com/devtools/winforms/controls/gridview/view-definitions/column-groups-view).
Is it possible to have the same feature in VirtualGrid?
I need something similar in the attached image. Just a simple group description without additional filters.
Thank you very much.
Emanuele