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
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
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.
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.