And so, this is my final problem:
I am trying to make a schedule for a list of emplyees.
I will make a Units view and a timeline view.
Inside the Units view, the x axis will be the list of emplyees, and in the timeline, y will be the emplyees.
The problem is, that inside the units view, each emplyee does not have it’s name on the column. Not only that, all the columns are called “undefined”. How could i name the columns with the names of the emplyees from the database?
Table has these properties:
[nodeId]
,[Email]
,[LoginName]
,[Password]
Table is called cmsMember.
This is some code of my Index controller:
var darbuotojai = new SchedulerAuthDataContext().cmsMembers.ToList();
var unit = new UnitsView("unit", "nodeId");
unit.AddOptions(darbuotojai);
unit.Label = "Grafikas";
sched.Views.Add(unit);
var select = new LightboxSelect("nodeId", "Room id");
select.AddOptions(darbuotojai);
sched.Lightbox.Add(select);
sched.LoadData = true;
return View(sched);