Our pure JavaScript Scheduler component


Post by rodel.ocfemia »

Hi,
When adding autoWidth: true to Scheduler column, it is throwing error. In Grid, there is no error.

Scheduler autoWidth.PNG
Scheduler autoWidth.PNG (115.38 KiB) Viewed 296 times
{
        type           : 'resourceInfo',
        text           : 'Name',
        minWidth: 200,
        autoWidth: true,
        showEventCount : false,
        showRole       : true
    },

Code:

Scheduler autoWidth.PNG
Scheduler autoWidth.PNG (115.38 KiB) Viewed 296 times
Attachments
scheduler-autoWidth.zip
(2.25 MiB) Downloaded 7 times

Post by tasnim »

Hi,

I'm not able to reproduce the issue with our demos or with your app! Could you please provide the steps to reproduce it?
By the way, you provided a demo of Gantt (maybe by mistake 🙂)


Post by rodel.ocfemia »

Hi,
We are using @bryntum/gantt-react and @bryntum/gantt for all products (grid, scheduler, gantt) as per advice. Pls check this ticket. viewtopic.php?t=26259&start=10

Right now, we are nearing go live of current release so we cannot afford any major code changes.


Post by ghulam.ghous »

Hi Rodel,

Can you please tell us the steps to repro this issue? A video clip would be of great help. As Tasnim mentioned above, we are not able to repro this issue in your attached demo above.

Regards,
Ghous


Post by rodel.ocfemia »

Hi Ghous,

I am using the code attached (scheduler-autoWidth.zip) in my first post.
The error I encountered was also posted on my first post.
Just after the scheduler is loaded in the browser, the error will pop out.


Post by ghulam.ghous »

Hi Rodel,

Thanks for writing back. Ok I have added the above config in the demo provided by you. Please see the clip here https://drive.google.com/drive/folders/13IvyIm9IFDD9rBVmtGZpFrXjP6D8RAer?usp=sharing. I have loaded and reloaded but there is no issue. One thing that Tasnim has also mentioned, you are using Gantt in the demo from the React Gantt package.

Regards,
Ghous


Post by rodel.ocfemia »

Hi Ghous,
As I discussed in my previous post, we are using @bryntum/gantt-react and @bryntum/gantt for all products (grid, scheduler, gantt) as per advice. Pls check this ticket for details viewtopic.php?t=26259&start=10

I'm not sure what is causing error in our local machine. When I run the code I attached in my first post, it is throwing error.


Post by tasnim »

Hi,

What browser version and OS version are you using to reproduce the issue?


Post by rodel.ocfemia »

Hi,
Please find below versions.

OS: Windows Server 2016 Version 1607
Browser: Chrome version 121.0.6167.162 (64-bit) - Incognito mode

Other error details.

Scheduler autoWidth - error.PNG
Scheduler autoWidth - error.PNG (229.51 KiB) Viewed 235 times

Post by Animal »

There seem to be no rows to operate on.

When you set a debugger breakpoint in the resizeToFitContent what do you see? Is row set to the first row in the RowManager row set?

is there a row set? If not, why not? etc.

Screenshot 2024-02-16 at 07.27.10.png
Screenshot 2024-02-16 at 07.27.10.png (466.78 KiB) Viewed 228 times

Post Reply