Unplanned
Last Updated: 16 Oct 2024 14:40 by Yurii
Yurii
Created on: 16 Oct 2024 11:03
Category: GridView
Type: Bug Report
1
RadGridView: DateTime and TimeSpanPicker editors popup is not resized to fit the content in Windows 11 theme
DateTime and TimeSpanPicker editors popup is not resized to fit the content in Windows 11 theme;
2 comments
Yurii
Posted on: 16 Oct 2024 14:40

Hello Dinko,

Thank you, - it works!

Best Regards,

Yurii Borachok

ADMIN
Dinko | Tech Support Engineer
Posted on: 16 Oct 2024 11:05

Hello Yurii,

Thank you for reporting this. We could extend the size of the editors in the CellEditorInitialized event:

Private Sub GridEditorInitializedEventHandler(sender As Object, e As GridViewCellEventArgs)
    Dim dtEditor As RadDateTimeEditor = TryCast(e.ActiveEditor, RadDateTimeEditor)

    If dtEditor IsNot Nothing Then
        Dim element As RadDateTimeEditorElement = TryCast(dtEditor.EditorElement, RadDateTimeEditorElement)
        element.CalendarSize = New Size(300, 300)
    End If

    Dim spanEditor As GridTimeSpanPickerEditor = TryCast(e.ActiveEditor, GridTimeSpanPickerEditor)

    If spanEditor IsNot Nothing Then
        Dim element As RadTimeSpanPickerElement = TryCast(spanEditor.EditorElement, RadTimeSpanPickerElement)
        element.PopupMinSize = New Size(300, 300)
    End If
End Sub

Regards,
Dinko | Tech Support Engineer
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.