JavaScript UI Libraries & Blazor Components Suite – Smart UI Forums Scheduler [Blazor Scheduler]How to add an item to a scheduler datasource from an event Reply To: [Blazor Scheduler]How to add an item to a scheduler datasource from an event

#109203
Lukas Xaver
Participant

Hej Peter,

I tried your suggestion today and it did not work.
I changed your event to
new SchedulerDataSource()
{
Id = “1”,
Label = “Google AdWords Strategy NEW”,
DateStart = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day, 9, 0, 0),
DateEnd = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day, 11, 30, 0),
}

when I call AddEvent nothing seems to happen.
I added the event to the DataSource list and nothing happened.

The only thing that helped was to call
calendar.Refresh(true);
calendar.Render();

after some time through a button click.

When I refresh and render in SchedulerReady(Scheduler scheduler) it doesn’t work too.

Do you have any suggestions what I could try?

Best regards,
Lukas