I have a datatime picker within my gridview. When I try to pick a date the calendar appears "squished"/consolidated. I can drag the corner and fix the issue but I'd rather not require the user to do this. How can I set a default height/width? See attached screenshot.
1 Answer, 1 is accepted
0
Accepted
Dess | Tech Support Engineer, Principal
Telerik team
answered on 24 Apr 2023, 05:06 AM
Hi, Walker,
I have prepared a sample code snippet for your reference demonstrating how to make the editor's popup bigger once the cell enters edit mode:
this.radGridView1.CellEditorInitialized += RadGridView1_CellEditorInitialized;
privatevoidRadGridView1_CellEditorInitialized(object sender, GridViewCellEventArgs e)
{
RadDateTimeEditor dateEditor = e.ActiveEditor as RadDateTimeEditor;
if (dateEditor!=null)
{
RadDateTimeEditorElement element = dateEditor.EditorElement as RadDateTimeEditorElement;
element.CalendarSize = new Size(300, 300);
}
}
The achieved result is illustrated in the below image:
I hope this information helps. If you need any further assistance please don't hesitate to contact me.
Regards,
Dess | Tech Support Engineer, Principal
Progress Telerik