No auto focus and save on enter in custom QuickInfoPopUp
Hey!
I have registered an issue in the SfSchedule component:
If i don't use customization and the QuickInfoPopUp opens, than the input field is focused and when I press enter I save the appointment - and if i click on "More Details" the full editor gets displayed and the first text box is focused and when I press enter it saves the appointment too. Which is great!
Now I want to customize the Scheduler with SchedulerTemplates->EditorTemplate and ScheduleQuickInfoTemplates->ContentTemplate. When the QuickInfoPopUp spawns, the first textbox is not focused and i can't save by pressing enter - but if i press "More Details" it does what it should. So EditorTemplate can handle auto focus and save on enter and the ContentTemplate not. Is there a way for you to fix this?
Here I have a quiet simple example:
<SfSchedule TValue="AppointmentData" Width="100%"
CurrentView="View.Month" Height="650px" AllowDragAndDrop="true" FirstDayOfWeek="1"
ShowWeekNumber="true" QuickInfoOnSelectionEnd="true">
<ScheduleTemplates>
<EditorTemplate>
EditorTemplate>
ScheduleTemplates>
<ScheduleQuickInfoTemplates>
<ContentTemplate>
ContentTemplate>
ScheduleQuickInfoTemplates>
SfSchedule>
And the according sample project is attached.
Best Regards!
Attachment: ServerApp_731de78c.zip
Thanks for the response. I was able to resolve the auto focus problem with your help. But there is still the save on enter-press part missing. How does it work in the EditorTemplate ? Sure i can implement a own keylistener and stuff but it is working in the EditorTemplate but not in the ContentTemplate. Do i have to wrap anything in a form or stuff?
If the Editor is open i just have to press enter no matter what is focused and it saves the appointment. In the ContentTemplate it does nothing.
Thanks for you investigations so far!
- 3 Replies
- 2 Participants
-
UN Unknown
- Dec 7, 2021 07:52 AM UTC
- Dec 14, 2021 09:12 AM UTC