jQWidgets Forums

jQuery UI Widgets Forums Scheduler JSON Source for resourses

This topic contains 1 reply, has 2 voices, and was last updated by  Peter Stoev 9 years, 7 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • JSON Source for resourses #77151

    tony_taco2000
    Participant

    Is it possible to use a json source for resources?

    Adding resources to the json example returns an error. See code below

     // prepare the data
                var source =
                {
                    dataType: 'json',
                    dataFields: [
                        { name: 'id', type: 'string' },
                        { name: 'status', type: 'string' },
                        { name: 'about', type: 'string' },
                        { name: 'address', type: 'string' },
                        { name: 'company', type: 'string'},
                        { name: 'name', type: 'string' },
                        { name: 'style', type: 'string' },
                        { name: 'calendar', type: 'string' },
                        { name: 'start', type: 'date', format: "yyyy-MM-dd HH:mm" },
                        { name: 'end', type: 'date', format: "yyyy-MM-dd HH:mm" }
                    ],
                    id: 'id',
                    url: '../sampledata/appointments.txt'
                };
                var adapter = new $.jqx.dataAdapter(source);
                $("#scheduler").jqxScheduler({
                    date: new $.jqx.date(2015, 11, 23),
                    width: 850,
                    height: 600,
                    source: adapter,
                    showLegend: true,
                    ready: function () {
                   
                    },
                    resources: {
                        colorScheme: "scheme02",
                        dataField: "calendar",
                        source: new $.jqx.dataAdapter(source)
                    },
                    appointmentDataFields:
                    {
                        from: "start",
                        to: "end",
                        id: "id",
                        description: "about",
                        location: "address",
                        subject: "name",
                        style: "style",
                        status: "status"
                    },
                    view: 'weekView',
                    views:
                    [
                        'dayView',
                        'weekView',
                        'monthView'
                    ]
                });
            });
    JSON Source for resourses #77158

    Peter Stoev
    Keymaster

    Hi tony_taco2000,

    For now, it is not possible.

    Best Regards,
    Peter Stoev

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

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

You must be logged in to reply to this topic.