jQuery UI Widgets Forums Scheduler Bug: agendaView and orientation: "horizontal",

This topic contains 7 replies, has 2 voices, and was last updated by  Peter Stoev 7 years, 5 months ago.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author

  • fewr
    Participant

    Hello jQWidgets team,

    if the scheduler is setup with “resources:{orientation: “horizontal“}” in the agendaView the columns “Date”, “Time” and “Appointment” will be repeat with the count of unique dataField: “resourceId”.

    So if there are four different groups like “room1”,…, “room4” the agenda looks like:
    DATE|Time|Appointment|DATE|Time|Appointment|DATE|Time|Appointment|DATE|Time|Appointment|
    But only the first three columns containing values, from all dataFields

    It would be nice to keep all columns but split the appointment by categories.
    But if this is to difficult please just remove all columns after the first three.

    Best Regards,
    fewr


    Peter Stoev
    Keymaster

    Thanks for writing.

    That is invalid setup for the Agenda view. But, we will look at it to forbid such kind of setup with throw Error at least.


    fewr
    Participant

    Hello Peter,

    please fix it in such a kind, that these examples with horizontal-resources works also in the future
    and additionally should it be possible to add the AgendaView at the same time.

    Thanks a lot
    fewr


    Peter Stoev
    Keymaster

    As far as i see the example you posted works now, too.


    fewr
    Participant

    It works? Could you tell me the number of fixed version?
    We use 5.3.2. and this problem happens still again.


    Peter Stoev
    Keymaster

    You shared a sample which obviously is without an issue. Should we modify this sample to reproduce something?

    Best Regards,
    Peter Stoev

    jQWidgets Team
    https://www.jqwidgets.com/


    fewr
    Participant

    Yes.
    As I wrote please just add in your example the viewtype “agendaView”.
    Than you will see that in this view all columns are repeated with the count of resources.

    This is my workaround:

    $("#jqxScheduler").on('viewChange', function (event) {
                var args = event.args;
                var resourcesSettings = {};
    
                if (args.newViewType === "weekView"
                 || args.newViewType === "agendaView") {
                        resourcesSettings = {
                            colorScheme: "scheme05",
                            orientation: "none"
                            //dataField: "resourceId",
                            //source: new $.jqx.dataAdapter(source)
    
                        };
                        //$("#jqxScheduler").jqxScheduler({ editDialog: false });
                        $("#jqxScheduler").jqxScheduler({ contextMenu: false });
                } else {
                    resourcesSettings = {
                        colorScheme: "scheme05",
                        orientation: "horizontal"                   
                        //dataField: "resourceId",
                        //source: new $.jqx.dataAdapter(source)
                    };
                    //$("#jqxScheduler").jqxScheduler({ editDialog: true });
                    $("#jqxScheduler").jqxScheduler({ contextMenu: true });
                }
    
                $("#jqxScheduler").jqxScheduler({
                    resources: resourcesSettings        
                });  
            });

    Peter Stoev
    Keymaster

    Hi fewr,

    I am sorry about the misunderstanding. Thank you for the feedback and the update.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com/

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.