Telerik Forums
UI for WinForms Forum
1 answer
89 views

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

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 25 May 2023
1 answer
140 views
Hi,
   I try to get even for dragdrop once node move to another location, i used following code to get event, but not success, here i attach code. i make true for   RadTreeView1.AllowDragDrop = True and  RadTreeView1.AllowDrop = True


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

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 23 May 2023
2 answers
228 views

Background:

  • I have a gridview column subscribing to EditorRequired event.
  • In the EditorRequired function, it will either prompt DropDownList or RadDateTimeEditor.

(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:

  • How to define the Date format?

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;

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 23 May 2023
1 answer
150 views

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!

Dinko | Tech Support Engineer
Telerik team
 answered on 23 May 2023
1 answer
154 views

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

 Here i drag and drop Son4 under the Son1, so i need to get source as Family/Mother/Son4 and destination as  Family/Father/Son1/Son4.

2. How to restrict to drop nodes in level 1(Family) and  level 3 (Son1,Son2,Son3,Son4), i need to move nodes Son1,Son2,Son3,Son4 under Father and Mother node, not to create child node under Son1,Son2,Son3,Son4, I mean move Son2 above Son1, same like Son4 move above Son3 and also move Son3 or 4 move to below Father node, same like Son1 or 2 move below Mother as child node.


Please reply asap.

Regards
Aravind
Aravind
Top achievements
Rank 2
Iron
Iron
Iron
 updated question on 22 May 2023
0 answers
107 views
Hi, please tell me how to move rows in grid with bindingsource and the selfreference mode. And if you turn on the sort mode, then dragging stops working altogether.
alex
Top achievements
Rank 2
Iron
 updated question on 21 May 2023
1 answer
157 views

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

Anna
Telerik team
 answered on 19 May 2023
0 answers
98 views
Hi! Why is the value of the selected cell in RadGridView shifted to the left, how can I fix this? Table in mode grid.Relations.AddSelfReference() (like TreeView)
alex
Top achievements
Rank 2
Iron
 updated question on 19 May 2023
1 answer
134 views

Hi guys,

I have been searching for a correct answer for that, but without success. It looks like work in C# but not in VB.

I want to implement a TAB between the rows in this sample project. Any idea what is missed?

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 18 May 2023
1 answer
103 views

There are hundreds of installed examples but they're all without projects. Putting them in a project results in many build errors.

 

What is the procedure for running the examples?

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 18 May 2023
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?