Problem refresh Kanban Component

Hi,

In a page with the Kanban component, I call a Popup to add new task. When I click on save, i close the Popup, I refresh the data source list and the Kanban with the instructions:

          //......//

RefreshTacksList();

          sfKanban.Refresh();

          PopupNewOrEditTaskVisible = false;

          StateHasChanged();
    }

why the kanban does not refresh?

Thanks.

5 Replies

BS Balasubramanian Sattanathan Syncfusion Team December 10, 2020 11:01 AM UTC

Hi Aitlahmid, 

Greetings from Syncfusion Support. 

We have analyzed and tried to reproduce your reported problem by preparing the below sample at our end. But unfortunately, we are unable to reproduce it. Since the Kanban has refreshed properly after adding the new card using the dialog window.  


Kindly refer to the above sample and let us know the below details if the problem is not resolved. 
  • Share the Kanban related code snippets or
  • Replicate your problem in the above sample or
  • Share a sample(if possible) illustrating the problem which would help us to provide the solution at the earliest.

Regards, 
Balasubramanian S 



AI aitlahmid December 10, 2020 11:59 AM UTC

Hi,

Thank you

My context is different. I use a custom popup for adding a Task, not a Template.

Thanks.


BS Balasubramanian Sattanathan Syncfusion Team December 11, 2020 11:23 AM UTC

Hi Aitlahmid, 
 
Thanks for the reply. 
 
We let you know that if you need to update the datasource after adding the new card using a custom popup, kindly define the DataSource property as two way binding like the below code snippet. We have prepared a sample similar to your requirement for your reference. 
 
<SfKanban @ref="RecommendationKanban" TValue="Recommendation" KeyField="Status" @bind-DataSource="@Recommendations"> 
</SfKanban> 
 
 
As we asked earlier, kindly share the below details if the problem is not resolved. 
  • Share the Kanban related code snippets or
  • Replicate your problem in the above sample or
  • Share a sample(if possible) illustrating the problem which would help us to provide the solution at the earliest.
 
Regards, 
Balasubramanian S 



AI aitlahmid December 14, 2020 08:43 AM UTC

Hi,

The problem is resolved.

Thank you.


NR Nevitha Ravi Syncfusion Team December 15, 2020 04:46 AM UTC

Hi Aitlahmid, 

You are most welcome, please get back to us if you need any further assistance. 

Regards, 
Nevitha 


Loader.
Up arrow icon