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.
-
Author
-
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 dataFieldsIt 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,
fewrThanks 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.
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
fewrAs far as i see the example you posted works now, too.
It works? Could you tell me the number of fixed version?
We use 5.3.2. and this problem happens still again.You shared a sample which obviously is without an issue. Should we modify this sample to reproduce something?
Best Regards,
Peter StoevjQWidgets Team
https://www.jqwidgets.com/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 }); });
Hi fewr,
I am sorry about the misunderstanding. Thank you for the feedback and the update.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.com/ -
AuthorPosts
You must be logged in to reply to this topic.