Telerik Forums
UI for WinForms Forum
1 answer
39 views

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.

Jesse
Top achievements
Rank 1
Iron
 updated answer on 05 Aug 2024
3 answers
31 views

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.

Henri
Top achievements
Rank 2
Iron
Iron
Iron
 answered on 01 Aug 2024
2 answers
30 views

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?

 

Mihajlo
Top achievements
Rank 1
Iron
 answered on 30 Jul 2024
1 answer
27 views

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

Nadya | Tech Support Engineer
Telerik team
 answered on 30 Jul 2024
3 answers
38 views

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?

 

 

Nadya | Tech Support Engineer
Telerik team
 answered on 25 Jul 2024
1 answer
38 views

Where are located the .tssp files for the current version of the Telerik controls for Winforms?

Nadya | Tech Support Engineer
Telerik team
 answered on 22 Jul 2024
1 answer
26 views

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

Nadya | Tech Support Engineer
Telerik team
 answered on 19 Jul 2024
2 answers
35 views
Hi,
    I want to add filter for only one column with the value of "Verification" , "Export" and "Done". so how to add this filter in rad grid. Can add dropdownlist in order show 3 values and filter by any one value chosen by end user 

Regards
Aravind
Aravind
Top achievements
Rank 2
Iron
Iron
Iron
 answered on 17 Jul 2024
1 answer
32 views

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


Nadya | Tech Support Engineer
Telerik team
 answered on 17 Jul 2024
1 answer
24 views

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

 

 

Nadya | Tech Support Engineer
Telerik team
 answered on 16 Jul 2024
Narrow your results
Selected tags
Tags
GridView
General Discussions
Scheduler and Reminder
Treeview
Dock
RibbonBar
Themes and Visual Style Builder
ChartView
Calendar, DateTimePicker, TimePicker and Clock
DropDownList
Buttons, RadioButton, CheckBox, etc
ComboBox and ListBox (obsolete as of Q2 2010)
ListView
Chart (obsolete as of Q1 2013)
Form
PageView
MultiColumn ComboBox
TextBox
RichTextEditor
Menu
PropertyGrid
RichTextBox (obsolete as of Q3 2014 SP1)
Panelbar (obsolete as of Q2 2010)
PivotGrid and PivotFieldList
Tabstrip (obsolete as of Q2 2010)
MaskedEditBox
CommandBar
PdfViewer and PdfViewerNavigator
ListControl
Carousel
Diagram, DiagramRibbonBar, DiagramToolBox
GanttView
Panorama
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
ProgressBar
CheckedDropDownList
Rotator
TrackBar
MessageBox
SpinEditor
StatusStrip
CheckedListBox
Wizard
ShapedForm
SyntaxEditor
TextBoxControl
LayoutControl
CollapsiblePanel
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
DataEntry
GroupBox
ScrollablePanel
WaitingBar
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
PopupEditor
RibbonForm
TaskBoard
Styling
Barcode
ColorBox
Callout
FilterView
PictureBox
VirtualKeyboard
NavigationView
Accessibility
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
Licensing
BreadCrumb
LocalizationProvider
Dictionary
Overlay
Security
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
Flyout
ToolbarForm
NotifyIcon
Rating
TimeSpanPicker
BarcodeView
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
+? more
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?