I have designed scheduler with unitsview, weekview and monthview,
I have a seperate list of customersname which is displayed on a listbox.
I got struck here.
Now on the weekview, I want each of the customers information to get displayed in the that particular week.
i.e(check image attached) If i click customer1 , I want all the appointments by that customers on that week to get displayed on weekview. If i click customer2, I want appointments of that customer2 on the weekview at the week.Is this possible using weekview? If not, how to implement this? Please help.
Can be done through client side filtering ( need to be defined throuh javascript )
scheduler.filter_week = function(id, event){
var selected = document.getElementById("customer_select").value;
if(event.customer == selected)
return true;
return false;
}
I have details fetched from the database to display on scheduler whenever i change the selection in dropdown, so is tat serverside filtering?
Yep, but if you still need to show all events in other views - it may be a more simple solution, to load data at once and filter on client side the agenda view only.
agenda view?currently I use weekview and a decade view to show 30 days (just like weekview)
Can you pls explain more or provide a code sample as I dont get how to implement this filter,I use asp.net mvc with razor.
public class DecadeView : SchedulerView
{
public DecadeView()
: base()
{
Name = ViewType = “decade”;
}
}
public ActionResult Index()
{
var scheduler = new DHXScheduler();
ViewBag.scheduler = scheduler;
scheduler.Views.Add(new DecadeView()
{
Label = "Decade"
});
var evBox = new DHXEventTemplate();
scheduler.InitialView = “units”;
return View(scheduler);
}
index.cshtml
@Html.Raw(ViewBag.scheduler.GenerateLinks())
@Html.Raw(ViewBag.scheduler.GenerateHTML())