JavaScript UI Libraries & Blazor Components Suite – Smart UI Forums General Discussions [Scheduler] how to fetch data from a saved/edited event

Tagged: 

This topic contains 5 replies, has 2 voices, and was last updated by Avatar admin 3 months, 4 weeks ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #101831
    Avatar
    Torsten Brieskorn
    Participant

    I use Smart in Angular 12.

    How do I get the data from an event that has just been saved?

    Usually I get the data from the property “change”: <smart-scheduler id=”scheduler” (change)=”smartChange($event)”.

    Smart Scheduler has properties like onItemUpdate and onItemClick. But that does not work :(.

    How can i work with Smart Sheduler – fetch the data from a saved event???

    #101833
    Avatar
    admin
    Keymaster

    Hi Torsten Brieskorn,

    Please, post a Stackblitz sample demonstrating what exactly you try to achieve. The “change” event is not related to Event updates. It is related to navigation in this component so it is not appropriate for getting information which event is updated.

    Best regards,
    Peter Stoev

    Smart UI Team
    https://www.htmlelements.com/

    #101840
    Avatar
    Torsten Brieskorn
    Participant

    i try a lot of events. Nothing gives me the saved/updated/inserted data.

    Even importing the modules (app.modules.ts) does not work under Stackblitz. But all my code for smart-scheduler is present.

    …on my local machine, the import works.

    #101842
    Avatar
    admin
    Keymaster

    Hi Torsten,

    All Scheduler demos on our website have Edit in Stackblitz button below.

    Best regards,
    Peter Stoev

    Smart UI Team
    https://www.htmlelements.com/

    #101846
    Avatar
    Torsten Brieskorn
    Participant

    ah, great, i was blind.

    my stackblitz

    But after my changes – the app:

    • on stackblitz: does not run
    • on my localhost: ERROR TypeError: Smart.Render is not a function
      at SchedulerComponent.ngAfterViewInit (smart-webcomponents-angular-scheduler.js:1489)
    #101847
    Avatar
    admin
    Keymaster

    Hi Torsten Brieskorn,

    dragEnd, dragStart are raised when you drag/drop event.
    item
    resizeStart, resizeEnd are raised when you resize an event.
    itemUpdate is raised only when you edit an event through the Scheduler dialog.

    Best regards,
    Peter Stoev

    Smart UI Team
    https://www.htmlelements.com/

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.