Created a column like this:
if (operation == "viplata")
{
GridViewCheckBoxColumn checkBoxColumn = new GridViewCheckBoxColumn
{
DataType = typeof(bool),
Name = "Выбрать",
FieldName = "Выбрать",
HeaderText = "Выбрать",
EditMode = EditMode.OnValueChange,
ReadOnly = false
};
checkBoxColumn.EnableHeaderCheckBox = true;
radGridView1.MasterTemplate.Columns.Add(checkBoxColumn);
}
The column is shown, but nothing can be selected. I have an event connected to DataGridView1_DoubleClick, so the checkboxes must be set by one click. How can I implement it?
I have grouping enabled in my grid.How can I make it so that when I press a key, only open checkBoxColumn groups are selected?Thanks for your help.
Hi, I am customizing the theme VisualStudio2022Light. I have changed the purple color to the teal. However, I am not able to change the background and selected row in the theme.
When I run my application, it is still in purple.
I found a similar issue where I couldn't find where I can change the close button during click in the RadForm.
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