Premium support for our pure JavaScript UI components


Post by vinayadav@ptc.com »

Hi Dev Team,

In the Task Editor UI, under the Resources Tab, I observed the following behavior:

  1. When there are multiple tasks and none of them have any resources assigned, the Resources Tab
    displays the message: "No records to display" for all tasks.
  2. However, if a resource is assigned to even one task, that task correctly shows the assigned resource, but
    for the other tasks (that do not have any resources), no message like "No records to display" appears.

Previously, the message "No records to display" was shown for tasks without resources assigned.

Could you confirm if this change in behavior is intentional or if it’s a bug?


Post by ghulam.ghous »

Hello,

  1. I cannot see any No records to display text when there is no record in the resourcesTab. See the below screenshot:

    Screenshot 2025-01-20 at 5.09.12 PM.png
    Screenshot 2025-01-20 at 5.09.12 PM.png (417.73 KiB) Viewed 11805 times
  2. As I cannot see the behaviour mentioned in point 1, I cannot confirm this as well.

I have used the gantt advanced demo to check this. Can you please try there and provide steps to see this behaviour in our advanced demo?

https://bryntum.com/products/gantt/examples/advanced/

Regards,
Ghous


Post by vinayadav@ptc.com »

Hello,
I have used the Gantt Advanced Demo to reproduce an issue.

To observe the behavior, you need to remove the resource from all tasks. Once this is done, the relevant text becomes visible.

Please refer to the attached file for more details.

Attachments
Resource Text.mp4
Resource Text
(21.62 MiB) Downloaded 9 times

Post by ghulam.ghous »

I can see this behaviour. We will fix it here: https://github.com/bryntum/support/issues/10640

Meanwhile you can try to use this workaround:

    features : {
        taskEdit : {
            items : {
                resourcesTab : {
                    items : {
                        grid : {
                            toggleEmptyText() {
                                if (this.owner.record) {
                                    DomHelper.toggleClasses(this.element, 'b-grid-empty', !(this.owner.record.assignments.length > 0));
                                }
                            }
                        }
                    }
                }
            }
        },
},

Post by vinayadav@ptc.com »

Hi Dev Team,

I just wanted to check if the issue has been fixed and included in version 6.1.7, as I didn’t see it mentioned in the changelog for that version:

https://bryntum.com/products/scheduler/changelog/

Thanks & Regards,
Vinay Yadav


Post by tasnim »

Hi,

You can find it in this changelog

Best regards,
Tasnim

How to ask for help? Please read our Support Policy


Post Reply