I have a RadGridView in Winforms and a date time cell which when clicked will show the text edit mode and a drop down arrow to the right. On clicking the drop down arrow the nice calendar date picker shows.
I'm trying to get the calendar to show straight away but can't find a method on the calendar object. My current code is as follows;
Is there a way to do this? Perhaps if not possible, I'll fake a click to the drop down button.
Thanks in advance
I'm trying to get the calendar to show straight away but can't find a method on the calendar object. My current code is as follows;
Private
Sub
OrderGridView_CellEditorInitialized(sender
As
Object
, e
As
Telerik.WinControls.UI.GridViewCellEventArgs)
Handles
OrderGridView.CellEditorInitialized
Console.WriteLine(
"Editor init: {0}"
, e.ToString())
Dim
editor = TryCast(OrderGridView.ActiveEditor, RadDateTimeEditor)
If
(editor IsNot
Nothing
)
Then
Dim
calendar =
DirectCast
(editor.EditorElement, RadDateTimeEditorElement)
calendar.GetCurrentBehavior().DateTimePickerElement.Visibility = Telerik.WinControls.ElementVisibility.Visible
calendar.PerformClick()
calendar.
Select
()
End
If
End
Sub
Thanks in advance