Telerik Forums
UI for WinForms Forum
1 answer
104 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
58 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
163 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
77 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
52 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
105 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
75 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
98 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
243 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
1 answer
91 views

Hello,

I would like to help with GridViewComboBoxColumn behavior. I have almost solved how to automatically show popup on click. Next, I want to end edit after selecting some item from combo box, similar to standard DataGridView behavior. I have done this so far:

private void radGridView1_CellClick(object sender, GridViewCellEventArgs e)
{
	// automatic combo expanding
	if (radGridView1.IsInEditMode)
		return;

	var cell = sender as GridComboBoxCellElement;
	if (cell == null)
		return;

	radGridView1.BeginEdit();
	var editor = cell.Editor as RadDropDownListEditor;
	if (editor == null)
		return;

	var el = editor.EditorElement as RadDropDownListEditorElement;
	if (el == null)
		return;

	el.SelectedIndexChanged += El_SelectedIndexChanged;

	el.ShowPopup();
}

private void El_SelectedIndexChanged(object sender, Telerik.WinControls.UI.Data.PositionChangedEventArgs e)
{
	var el = sender as RadDropDownListEditorElement;
	if(el == null) 
		return;

	radGridView1.EndEdit();
	el.SelectedIndexChanged -= El_SelectedIndexChanged;
}

I attach SelectedIndexChanged event handler to RadDropDownListEditorElement before showing popup. In this handler, I call EndEdit first and then detach the handler. This works ok except for one case, when user selects the same item, in this case SelectedIndexChanged is not fired, because SelectedIndex hasn't changed:

I tried the same with other events like PopupClosed, but when I cal EndEdit in these events, selected value is not commited. Is it possible to do this somehow? I have attached test project, TelerikTestReal in solution. Thanks.

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