good morning,
I need to implement a timeline view where users are displayed on the x-axis and on the y-axis days and hours of the day, in mvc 5 someone could help me with the documentation
Hello @fabianvanegas ,
The only view that supports some units instead of time as x-axis is the “Units” view:
https://docs.dhtmlx.com/scheduler/units_view.html
In case if you want to create it in MVC 5, you can use the following guide as a code reference:
https://docs.dhtmlx.com/scheduler/howtostart_dotnet.html#step2addingschedulertothepage
You can take the Views/Home/Index.html
from Step 2 of the guide above, and provide 1-4 steps from the following “Units” view guide:
https://docs.dhtmlx.com/scheduler/units_view.html
1.)Include the Units code file on the page:
<script src="codebase/ext/dhtmlxscheduler_units.js"></script>
2.) Add the view’s tab to the scheduler’s markup:
<div id="scheduler_here" class="dhx_cal_container" ...>
<div class="dhx_cal_navline">
...
<div class="dhx_cal_tab" name="unit_tab" style="right:280px;"></div>
</div>
...
</div>
3.) Set the label for the tab:
//'unit_tab' is the name of our div
scheduler.locale.labels.unit_tab = "Unit"
4.) Call the createUnitsView method:
scheduler.createUnitsView({
name:"unit",
property:"unit_id", //the mapped data property
list:[ //defines the units of the view
{key:1, label:"Section A"},
{key:2, label:"Section B"},
{key:3, label:"Section C"}
]
});
Note: Please note, that the “Units” view works only in PRO versions of the scheduler.