Hi Team,
We are using RadDropDownList control version (2023.1.314)
We are getting 'System.StackOverflowException' exception while assigning value in the dropdownlist (its keep on recursion).
Could you please help on this?. Please find sample program below.
We are using visual Studio 2022 and Telerik.WinControls.UI.dll(2023.1.314)
Note: Its working fine in 2013.3.1.1127 version.
private void comboBox1_SelectedIndexChanged(object sender, Telerik.WinControls.UI.Data.PositionChangedEventArgs e)
{
setOldValue();
}
private void setOldValue()
{
comboBox1.SelectedValue = 2;
}
private void button1_Click(object sender, EventArgs e)
{
comboBox1.SelectedValue = 1;
}
Thanks
Rajkannan
For some reason - probably due to me doing some re-sizing of columns - my sheets are now opening scrolled a bit to the right, which means my important left-hand columns are not visible without scrolling.
I assume this will be annoying to users - It certainly took me an hour to figure out what had happened to my left-hand columns. :-(
I tried to make the sheet scroll left in the control.load event:
mySpreadsheetControl.HorizontalScroll.Value = 0
...but that didn't seem to work.
Does anyone know the right way to scroll left in a sheet?
Thanks
Hello,
i am using custom status and i would like to know if it is possible to set the width of the displayed status field.
I haven't found the right element at the AppointmentFormatting event to access the status field.
Regards,
Paul
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load RadTreeView1.AllowDragDrop = True RadTreeView1.AllowDrop = True ' Add event handlers for drag and drop events AddHandler RadTreeView1.DragEnter, AddressOf RadTreeView1_DragEnter AddHandler RadTreeView1.DragDrop, AddressOf RadTreeView1_DragDrop End Sub Private Sub RadTreeView1_DragEnter(sender As Object, e As DragEventArgs) Handles RadTreeView1.DragEnter ' Check if the data being dragged is a RadTreeNode If e.Data.GetDataPresent(GetType(RadTreeNode)) Then e.Effect = DragDropEffects.Move Else e.Effect = DragDropEffects.None End If End Sub Private Sub RadTreeView1_DragDrop(sender As Object, e As DragEventArgs) Handles RadTreeView1.DragDrop ' Check if the data being dragged is a RadTreeNode If e.Data.GetDataPresent(GetType(RadTreeNode)) Then ' Get the dragged node Dim draggedNode As RadTreeNode = CType(e.Data.GetData(GetType(RadTreeNode)), RadTreeNode) ' Get the target node Dim targetNode As RadTreeNode = RadTreeView1.GetNodeAt(RadTreeView1.PointToClient(New Point(e.X, e.Y))) ' Get the full path of the dragged node Dim draggedNodePath As String = draggedNode.FullPath ' Get the full path of the target node Dim targetNodePath As String = targetNode.FullPath ' Do something with the full paths MessageBox.Show("Dragged Node Path: " & draggedNodePath & vbCrLf & "Target Node Path: " & targetNodePath) End If End Sub
Please advice me what i make mistake ? i try to get source and destination node after drag and drop nodes
Please asap.
Regards
Aravind
Background:
(Please refer attached for sample project)
private void radGridView1_EditorRequired(object sender, EditorRequiredEventArgs e)
{
if (this.radGridView1.CurrentColumn.Name == "Value" && this.radGridView1.CurrentRow.Cells[2].Value.ToString() == "DropDown")
{
RadDropDownListEditor editor = new RadDropDownListEditor();
RadDropDownListEditorElement element = editor.EditorElement as RadDropDownListEditorElement;
element.DropDownStyle = RadDropDownStyle.DropDownList;
element.AutoSizeItems = true;
var selection = this.radGridView1.CurrentRow.Cells[3].Value.ToString().Split(new string[] { "," }, StringSplitOptions.RemoveEmptyEntries).ToList();
element.DataSource = selection;
e.Editor = editor;
}
else if (this.radGridView1.CurrentColumn.Name == "Value" && this.radGridView1.CurrentRow.Cells[2].Value.ToString() == "Date")
{
RadDateTimeEditor editor = new RadDateTimeEditor();
editor.CustomFormat = "dd-MMM-yyyy";
e.Editor = editor;
}
}
Question:
I have tried to set the CustomFormat but the format remains as shown in the screenshot above.
RadDateTimeEditor editor = new RadDateTimeEditor();
editor.CustomFormat = "dd-MMM-yyyy";
e.Editor = editor;
I'm trying to drag and drop RadCallout to an existing Form Designer, and while I don't get any errors and it appears that it drags and drops, the control doesn't remain on the form and does not appear in the Components Tray either. I do not have a problem adding other Rad controls, but Callout doesn't seem to work. Will it only work with a Rad Form? Or is there a prerequisite I should know about? Do I need to install something so that the Designer can properly display it?
I'm using Visual Studio Professional 2022 version 17.5.5 with Telerik UI for WinForms Extension 2023.1.313.33.
Thanks in advance!
Hi,
1. How to get radtreeview drag and drop event to handle to get source and destination full path node using vb.net. I tried but i can get both source and destination as same node. I provide treeview node sample structure.
Family
----Father
---Son1
---Son2
----Mother
---Son3
---Son4
When I load data into my sheets, where there are columns which have a lot of data (long descriptions of things) and I use 'autoFitWidth to make things look sensible, I end up with some very wide columns, as expected.
Where a column is wider than the viewable area, left and right scroll often don't do anything: the sheet still shows one column. It seems to want to show all of a column, so after a while, it jumps to the next wide column.
(zipped video below)
This is strange behaviour, and also means that my users can not figure out how to re-size one of these wide columns, and then use word wrapping to make it easier to read.
Have I done something bad to my data to make it do this ? Or is there a setting somewhere to make the scrolling smooth?
Thanks