specific dataload by view

Hi the Forum,

I would like to know if it is possible to display some events in the week, month view and some others events in the timeline view ?
Is it possible to have some specific dataload by view ?
And how ?

Best regards.

you can use filters to display different set of events depending on selected view, as described here
scheduler-net.com/docs/filtratio … _filtering
or here
docs.dhtmlx.com/doku.php?id=dhtm … filtration
its available both on client and server.

You could also catch onViewChange, or onBeforeViewChange event of the client-side scheduler and reload the data manually

[code]scheduler.attachEvent(“onBeforeViewChange”, function (old_mode, old_date, mode , date){
scheduler.clearAll();//remove all events
//mode - name of the selected view

   scheduler.load(url, "json");//load data from specified url
   // or
   scheduler.parse(array);//load data from array of objects



I saw this “filtering” item but I didn’t think it was this subject.
I must have a better look to the documentation. :wink:

thank you for answer.