Premium support for our pure JavaScript UI components


Post by Selvin »

Event start date (2018-01-01) is not bind properly in the first load, but the same data displaying properly in tool-tip. Please refer the below images for more clarity.
Events-Start-Date-From-2018-01-01.jpg
Events-Start-Date-From-2018-01-01.jpg (65.17 KiB) Viewed 1984 times
How to bind the stratDate dynamically(from the database) not like set the stratDate by static?(see image2)
image2.jpg
image2.jpg (37.51 KiB) Viewed 1984 times
And how to set-focus / zoom-to-fit in center like the below image
Zoom-To-Fix-Center.jpg
Zoom-To-Fix-Center.jpg (120.66 KiB) Viewed 1984 times

Post by mats »

For first issue, how do we reproduce it? Please provide us a test case - or record a test case video online on our demos if you can reproduce it there (add ?video=1 to querystring).

For zooming, look at zoomTo method (centerDate option): https://bryntum.com/docs/scheduler/#Sch ... ion-zoomTo

Post by Selvin »

Find the attached POC to replicate

Issue 1
Steps:
1. Find the data from 'src\components\sequence\sequence.vue'
2. compare input data (2018) from the above file and observe the result (2019) set in the browser
Input_date_range.jpg
Input_date_range.jpg (37.97 KiB) Viewed 1971 times
output_data.jpg
output_data.jpg (125.48 KiB) Viewed 1971 times
3. Input value (2018-01-01) is not binding into scheduler properly (it is binding from 2019)




Issue 2
How to bind the stratDate dynamically (based on the first record we need to bind the start date dynamically )


Issue 3
How to find and set-focus event "ORCA A19" because it's start date is 2012-01-01
Attachments
bryntum-scheduler-ui.zip
(1.97 MiB) Downloaded 150 times

Post by johan.isaksson »

Hi,

I think this is caused by a known and already fixed bug: https://app.assembla.com/spaces/bryntum/tickets/7293.

Please download latest nightlies and see if it resolves the issue for you.
Best regards,
Johan Isaksson

Post by Selvin »

We are using Scheduler v1.1.2 the latest version and we facing the same issue.

Post by johan.isaksson »

That is the latest release yes, but customers can download nightly builds through CustomerZone (https://customerzone.bryntum.com). They contain the latest bug fixes but are not guaranteed to be stable. Please download the latest from there and see if it resolves your issue.
Best regards,
Johan Isaksson

Post by Selvin »

Thanks johan.isaksson,

First issue got fixed. Could you help to resolve below issues
1. At present we have set the startDate as manually but we need to set that startDate dynamically (bind value from Database) for scheduler control after filter operation. Please find the attached images for more information.
image2.jpg
image2.jpg (37.38 KiB) Viewed 1952 times
We are unable to bind the value dynamically in below image. we have already shared a sample POC on these issues.
startdate_dyna,ically.jpg
startdate_dyna,ically.jpg (71.58 KiB) Viewed 1952 times

Post by johan.isaksson »

Hi,

Binding of startDate does not work because our Vue wrapper does not add a watch for each prop. I have modified it to do that in our sources, the change should appear in nightlies on monday. In the meanwhile you can add a watch manually to the wrapper:
 watch : {
        // add it here
        startDate : function(newValue) {
            this.schedulerEngine.startDate = new Value;
        },

        barMargin : function(newValue) {
            this.schedulerEngine.barMargin = newValue;
        },
        ....
    }
To reduce the risk of ending up with an invalid timeaxis I would recommend that you change both start and end dates at the same time if that is what you intend to do. It can be done using the API, please see https://bryntum.com/docs/scheduler/#Sch ... etTimeSpan.

Also I noticed that your event demo data has "2018-01-01..." which is January 1. But in the screenshot you use `new Date(2018,1,1)` which is actually February 1 since JS dates use 0-based months.
Best regards,
Johan Isaksson

Post by Selvin »

Thanks Johan Isaksson,

Thanks for your input.

Regards,
Selvin M

Post Reply