Kanban event after data has been updated on a remote data source

Dear Syncfusion team,

we are currently using a Kanban with a DataManager using the OData adapter. We have some custom calculated properties, that we are using for the column assignment, which have a base property, that is shown in the card template. In our case, it is a due date, and we show the weekday as columns.

When we drag a card to a different day, we update the item's due date based on the weekday column it has been dragged to. This works nicely, however, since the Kanban is updating the Weekday property, it does not change the displayed due date to the new value.

We would like to manually refresh cards after it has been changed. For this, we are looking for an event, that is fired, once the DataManager returns from the update call. We have tried the "actionComplete" event with the "requestType" == "cardChange", however, it seems to be fired prior to the DataManager actually making the OData call. When we refresh the card there, we have a race condition, where the "update" call typically still loads the old data. "dataSourceChanged" is also not called when we drag a card for the first time. The pattern is:

drop a card: actionBegin -> actionComplete
drop a card again: actionBegin -> dataSourceChanged -> actionComplete

What event can we use? I have tried to find something on the DataManager, but it has no events at all, that we could hook into. Will we have to create a custom DataAdapter based on the ODataAdapter to achieve this, or is this even a bug in your component, that the event is firing too early?

Thanks for any pointers!

Cheers,
Christoph


1 Reply

VJ Vinitha Jeyakumar Syncfusion Team August 30, 2022 10:31 AM UTC

Hi Tom,

Can you please share some more details about your use case scenario for our better understanding,

  • How do you update the due date and using which event?
  • Issue replicating video or image illustration.
  • Entire code snippet.
  • If possible, please share us with the issue reproducing runnable sample to further validate on our end.
Please refer to the below documentation for your reference.


Regards,
Vinitha



Loader.
Up arrow icon