PROBLEM WITH DOUBLE GROUP

Good evening,

I have attached my code. 

I want to obtain something like these:

Scheduler · Timeline Grouping · Syncfusion React UI Components

Where Project = FunctionalCategoryId

User = anaUserId

When I add 

group={{ resources: ['Grp_FC', 'Grp_Usr'] }} nothing is printed.

Which is my error?




Attachment: ScheduleTest_333882ac.zip

9 Replies

AK Ashokkumar Karuppasamy Syncfusion Team January 22, 2025 03:17 PM UTC

Hi Alex,


Thank you for reaching out to us!

Based on the details shared, we have identified the root cause of the issue. It appears that the Subject field mapping has not been configured properly, as the Subject value is expected to be a string but a number was used, causing the issue. We have attached a sample for your reference.

Sample: https://stackblitz.com/edit/react-epvz8rpm-qh88dkn8?file=index.js


Regards,

Ashok



AL Alex January 22, 2025 05:32 PM UTC

Good evening, 


thanks a lot for the solution is working now: I have to change my datastructure not the ty





AL Alex January 22, 2025 05:32 PM UTC

Good evening, 


thanks a lot for the solution is working now: I have to change my datastructure not the ty





AL Alex January 22, 2025 05:32 PM UTC

Good evening, 


thanks a lot for the solution is working now: I have to change my datastructure not the type.

Thanks Alex





AL Alex January 23, 2025 09:16 AM UTC

Good morning,

I have another question. The color of the event is shown correctly.

Why the color of the PROJECT NO?

I'm expected that PROJECT 1 row has this one, whereas is gray in yor onlyne example.

Thanks Alex


Image_7204_1737623792604


const projectData = [
    { text: 'PROJECT 1'id: 1color: '#cb6bb2' },
    { text: 'PROJECT 2'id: 2color: '#56ca85' },
    { text: 'PROJECT 3'id: 3color: '#df5286' }
  ];



AL Alex January 23, 2025 09:17 AM UTC

Good morning,

I have another question. The color of the event is shown correctly.

Why the color of the PROJECT NO?

I'm expected that PROJECT 1 row has this one, whereas is gray in yor onlyne example.

Thanks Alex


Image_7204_1737623792604


const projectData = [
    { text: 'PROJECT 1'id: 1color: '#cb6bb2' },
    { text: 'PROJECT 2'id: 2color: '#56ca85' },
    { text: 'PROJECT 3'id: 3color: '#df5286' }
  ];



AK Ashokkumar Karuppasamy Syncfusion Team January 23, 2025 02:01 PM UTC

Hi Alex,

You can achieve your requirement by applying the project color. We suggest using the resourceFieldColor in the event setting property to meet your objectives. The attached code snippet and sample demonstrate the solution below. Please try the solution and let us know if you need any further assistance.

Sample: https://stackblitz.com/edit/react-epvz8rpm-pdzwtum3?file=index.js

eventSettings={{ dataSource: data, fields: fieldMappings, allowAdding: false, allowDeleting: false, resourceColorField: 'Grp_FC'}}


Furthermore, if there is a possibility that we misunderstood your requirement, we would greatly appreciate it if you could provide us with further information about your scenario. This will help us align our understanding with your expectations and provide you with the best possible assistance.

Regards,
Ashok



AL Alex January 23, 2025 02:24 PM UTC

Good afternoon Ashok

thnks for your answer.

I think that i not explained correctly my request: excuse me.

What I want is to color the row Group that allow to expand/compress  all the users.

I want to color the backround with a standard attribute if it's possible/available.

For us is clear how to color the background event: You show to me with the code of yours first example.

My goal is to color, has you can see here, the background row of the PROJEC NR (the group name).

If it's possible the complete row, otherwise only the cell with the name if it's not possible

Thanks in adavance Alex


Image_6204_1737641842339



AK Ashokkumar Karuppasamy Syncfusion Team January 24, 2025 01:05 PM UTC

Hi Alex,

For the last query, we have branched out separately. For further updates, please follow the link below:

Coloring Group Row Background in the Schedule Component | React - EJ 2 Forums | Syncfusion®

Regards,

Ashok


Loader.
Up arrow icon