Telerik Forums
UI for WinForms Forum
3 answers
225 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
166 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
84 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
259 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
132 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
86 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
1 answer
150 views

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

Nadya | Tech Support Engineer
Telerik team
 answered on 16 Jul 2024
1 answer
117 views

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

Nadya | Tech Support Engineer
Telerik team
 answered on 12 Jul 2024
1 answer
152 views

I have a data entry RadGridView bound to a collection of POCOs. It has some rather compiles editing requirements. On one particular row, there is a cell that requires the edit control to be a multi-selection combo box. On all other rows it requires a numeric entry. I created the column as a GridViewComboBoxColumn. and then tried to create a custom control to replace the standard editor using the EditorRequired event like this:

        private void gvMatrix_EditorRequired(object sender, EditorRequiredEventArgs e)

        {
            if (gvMatrix.CurrentRow.Cells["Comparison"].Value.ToString() == "One of")
            {
                if (e.EditorType == typeof(CustomCheckedListBox))
                    e.EditorType = typeof(CustomCheckedListBox);
            }

//Otherwise I need numeric entry

        }

 

Then, I tried to create the custom control based on the example on the Telerik site (https://docs.telerik.com/devtools/winforms/controls/gridview/editors/using-custom-editors) and came up with this:

 public class CustomCheckedListBox : BaseGridEditor
 {
     protected override RadElement CreateEditorElement()
     {
         return new CustomCheckedListBoxElement();
     }

     public override object Value
     {
         get
         {
             CustomCheckedListBoxElement element = this.EditorElement as CustomCheckedListBoxElement;
             return element.CheckedDropDownElement.Value;
         }
         set
         {
             CustomCheckedListBoxElement element = this.EditorElement as CustomCheckedListBoxElement;
             element.CheckedDropDownElement.Value = value;
         }
     }

     public override void BeginEdit()
     {
         base.BeginEdit();

         CustomCheckedListBoxElement element = this.EditorElement as CustomCheckedListBoxElement;

         var statesData = new List<Dictionary>();

         statesData.Add(new Dictionary { DictionaryKeyString = "AK", Description = "Alaska" });
         statesData.Add(new Dictionary { DictionaryKeyString = "NJ", Description = "New Jersey" });
         statesData.Add(new Dictionary { DictionaryKeyString = "AL", Description = "Alabama" });
         statesData.Add(new Dictionary { DictionaryKeyString = "GA", Description = "Georgia" });

         element.DataSource = statesData;
         element.DropDownStyle = RadDropDownStyle.DropDownList;
         element.ValueMember = "DictionaryKeyString";
         element.DisplayMember = "Description";
     }

     public override bool EndEdit()
     {
         return base.EndEdit();
     }

     //public string? ValueMember { get; set; }
     //public string? DisplayMember { get; set; }
     //public object? DataSource { get; set; }
 }

 public class CustomCheckedListBoxElement : RadCheckedDropDownListElement
 {
     RadCheckedDropDownListElement dropDownListElement = new RadCheckedDropDownListElement();

     public CustomCheckedListBoxElement()
     {
     }

     public RadCheckedDropDownListElement CheckedDropDownElement
     {
         get =>  this.dropDownListElement;           
     }

     protected override void CreateChildElements()
     {
         base.CreateChildElements();
     }
 }

What I get is a an empty dropdown in the cell with no data appearing. Ideally I'd like to instantiate the custom control and pass in the DataSource, ValueMember, etc. so I can reuse it elsewhere. The goal is to retrieve a list of selected states and display them like this when the cell is not in edit mode:

Alabama

New Jersey

Georgia

Any ideas on how to accomplish this?

Thanks

Carl

Dinko | Tech Support Engineer
Telerik team
 answered on 10 Jul 2024
1 answer
354 views

Hello,

is it possible to end edit when user navigates to other cell? The same behavior as standard DataGridView:

I tried to call EndEdit in CurrentCellChanged event handler, but it doesn't work, probably there is something with current cell changing, nor IsInEditMode is not set in this event.

Nadya | Tech Support Engineer
Telerik team
 answered on 10 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
ListView
ComboBox and ListBox (obsolete as of Q2 2010)
Form
Chart (obsolete as of Q1 2013)
PageView
MultiColumn ComboBox
TextBox
RichTextEditor
PropertyGrid
Menu
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
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
CollapsiblePanel
LayoutControl
ShapedForm
SyntaxEditor
Wizard
TextBoxControl
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
WaitingBar
GroupBox
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
RibbonForm
Styling
Barcode
PopupEditor
TaskBoard
NavigationView
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Overlay
Security
LocalizationProvider
Dictionary
TreeMap
SplashScreen
Flyout
Separator
SparkLine
StepProgressBar
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
SpeechToTextButton
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?