- Home
- Forum
- Angular - EJ 2
- Schedule dropdownlist erro in onPopupOpen()
Schedule dropdownlist erro in onPopupOpen()
Hi.
Quando uso a lista suspensa de agendamento na lista, ela aparece em linhas e não em colunas. Não consigo deixar ele em forma de colunas.
SIGN IN To post a reply.
4 Replies
AL
Alexandre
November 21, 2023 07:23 PM UTC
onPopupOpen(args: PopupOpenEventArgs): void {
// Verifique se o popup é para edição de evento
if (args.type === 'Editor') {
if (!args.element.querySelector('.custom-field-row')) {
let row: HTMLElement = createElement('div', {
className: 'custom-field-row',
});
let formElement = <HTMLElement>(
args.element.querySelector('.e-schedule-form')
);
formElement.firstChild?.insertBefore(
row,
args.element.querySelector('.e-title-location-row')
);
let container: HTMLElement = createElement('div', {
className: 'custom-field-container mb-3',
});
let inputEle: HTMLInputElement = createElement('input', {
className: 'e-field',
attrs: { name: 'Agendamento' },
}) as HTMLInputElement;
container.appendChild(inputEle);
row.appendChild(container);
let drowDownList: DropDownList = new DropDownList({
allowFiltering: true,
dataSource: this.resourceDataSource
,
fields: { text: 'text', value: 'value' },
value: (args.data as { [key: string]: Object; })['EventType'] as string,
floatLabelType: 'Always',
placeholder: 'Tipo Agendamento',
cssClass: 'class-custom-dropdown', // Adicione uma classe CSS personalizada
});
drowDownList.appendTo(inputEle);
inputEle.setAttribute('name', 'EventType');
inputEle.setAttribute('id', 'custom-dropdown');
}
AL
Alexandre
November 21, 2023 07:23 PM UTC
<ejs-schedule #scheduleObj locale='pt' width='100%' height='550px' [selectedDate]='selectedDate' [currentView]='currentView' [eventSettings]="eventSettings" (actionBegin)="onActionBegin($event)" (popupOpen)="onPopupOpen($event)" (eventRendered)="onEventRendered($event)"></ejs-schedule>
AL
Alexandre
November 21, 2023 07:25 PM UTC
When I use the schedule dropdown in the list, it appears in rows rather than columns. I can't leave it in the form of columns.
AK
Ashokkumar Karuppasamy
Syncfusion Team
November 22, 2023 05:15 PM UTC
Hi Alexandre,
Based on your query we have prepared a sample , but we are unable to reproduce the mentioned issue on our end. Try the shared sample. If you are still facing the issue kindly provide the following details, as they will greatly help us understand and provide a proper solution:
- Share all the code snippets related to the Schedule or
- Provide a simplified sample that replicates the issue, or
- Replicate the issue in our shared sample.
Sample: https://stackblitz.com/edit/addtional-filed-7voexp?file=src%2Fmain.ts
Regards,
Ashok
SIGN IN To post a reply.
- 4 Replies
- 2 Participants
-
AL Alexandre
- Nov 21, 2023 07:23 PM UTC
- Nov 22, 2023 05:15 PM UTC