search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

Tree Resources - "htmlfile" invalid argument

Asked by mochy
12 years ago.

Hello,

As soon as I try to put my resources in a tree, I get a 'htmlfile': invalid argument error for each of my resources. At this exact line:
if($m.Columns==null||$m.Columns.length==0){c.colSpan=$0O;$R.style.width=$1k+"px";} (on c.colSpan)

If I ignore each of these error, I see my scheduler just fine with all my ressources indented in the tree. I don't know what I am doing wrong, I have followed TutorialRestaurant as an example.

This is my code :
<DayPilot:DayPilotScheduler ID="DayPilotScheduler1" runat="server"
DataStartField="dateHeureEmprunt"
DataEndField="dateHeureRetour"
DataTextField="prenomConducteur"
DataValueField="idReservation"
DataResourceField="idVehicule"

TreeEnabled="true"

CellGroupBy="Day"
CellDuration="30"
Days="3"
BusinessBeginsHour="7"
BusinessEndsHour="17"
ShowNonBusiness="false"

Width="100%"
EventHeight="20"
HeaderFontSize="8pt"
EventFontSize="8pt"
>

</DayPilot:DayPilotScheduler>

And this is where I load my resources:

DataTable dt= getLocations();

DayPilotScheduler1.Resources.Clear();
foreach (DataRow dr in dt.Rows)
{
int id = Convert.ToInt32(dr["idEmplacement"]);

Resource r = new Resource((string)dr["ville"], null);
r.IsParent = true;
r.Expanded = true;
DayPilotScheduler1.Resources.Add(r);

DataTable vehicules = getVehicules(id);
foreach (DataRow vehicule in vehicules.Rows) {
Resource c = new Resource((string)vehicule["Marque"], Convert.ToString(vehicule["idVehicule"]));
r.Children.Add(c);
}

}

Can you see what's wrong?

Thank you so much, I am planning on buying the standard license when I'll get this working properly.

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.