Updating groups ?!


        <ScheduleResources >

            <ScheduleResource @ref="scheduleGroups" TItem="GroupDataDataModel" TValue="int[]" DataSource="@GroupDateDataSource"

                Field="GroupId" Title="Date" Name="Categories" TextField="DateText" IdField="Id"

                GroupIDField="GroupId" ColorField="Color" AllowMultiple="false"></ScheduleResource>

        </ScheduleResources>


I have grouped data, but when I change the items inside the DataSource of  ScheduleResources element - it works only the first time.

- How



6 Replies

RM Ruksar Moosa Sait Syncfusion Team January 21, 2022 06:56 AM UTC

Hi Yordan,


The following link demonstrates how to change the DataSource of the ScheduleResource element that might help you to achieve your requirement.


Demos Sample:  https://blazor.syncfusion.com/demos/scheduler/add-remove-resources?theme=bootstrap5


If the solution is not meet your requirement, kindly get back to us with the following details to proceed further and provide the solution earlier.

  • Confirm that changing the items in the datasource means Add, delete, or edit items
  • Share with us the code snippet that you have used to change the items.


Regards,

Ruksar Moosa Sait



YO Yordan January 21, 2022 03:14 PM UTC

.. In the example You have provided - there is no groups, which is causing the issue as i mentioned.

I have 2 data sources - 1 for the events, and 1 for the groups.

Every time I am clearing them with 

GroupDataDataSource.Clear();

and

EventDataSorurce.Clear();

then I am adding to them groups and events.

But once the groups go cleared to 



YO Yordan January 22, 2022 10:34 PM UTC

The issue goes even worse, as I keep adding deleting all groups and add new ones - the items in the groups goes displaced now.



VM Vengatesh Maniraj Syncfusion Team January 24, 2022 02:43 PM UTC

Sorry for the inconvenience.


Could you please confirm whether the issue has been resolved now? 



YO Yordan January 24, 2022 05:00 PM UTC

Resolved ? By whom ?


I am still expecting to see an actual demo about my question. The demo above is not related.



VM Vengatesh Maniraj Syncfusion Team January 25, 2022 03:48 AM UTC

Hi Yordan,

Could you please share the below details to proceed to validate and provide the prompt solution earlier?

  1. Share the scheduler codes
  2. Share the code snippet of data source adding and removing functionality

Loader.
Up arrow icon