Order Resources by custom parameter

Is it possible to order the ScheduleResources (red borders) like in the screen below by a custom Parameter?


It seems that these groups are always sorted by alphabet, but we have an extra positioning property with which we want to order these resource groups. I can't find something in the documentation for this problem.

Best regards


1 Reply

RM Ruksar Moosa Sait Syncfusion Team August 25, 2022 08:32 AM UTC

Hi DS,


We have checked on your query and let you know that the resource groups are always rendered in the order of the DataSource list. Hence you can position the order of the resource in the DataSource to achieve your requirement. We have prepared a sample for your reference. Kindly try the attached sample and let us know if this meets your requirement.


private List<ResourceData> ProjectData { get; set; } = new List<ResourceData> {

        new ResourceData {Text = "GERMAN", Id= 1, Color= "#cb6bb2"},

        new ResourceData {Text = "SPANISH", Id= 2, Color= "#56ca85"},

        new ResourceData {Text = "FRENCH", Id= 3, Color= "#df5286"}

};


Output:

Timeline

Description automatically generated


Regards,

Ruksar Moosa Sait


Attachment: BlazorTimelineGrouping_d9424184.zip

Loader.
Up arrow icon