I want my resources expanded by default, don't want to click on (+ icon) in Tree enabled property, i already use Expanded = true.
private void LoadResources()
{
Events = new EventManager().FilteredData().AsEnumerable();
foreach (DataRow companies in new EventManager().GetCompanyForResources().Rows)
{
Resources.Add(new Resource() { Name = (string)companies["Name"], Id = Convert.ToString(companies["Id"]), Expanded = true , DynamicChildren = true});
}
DataStartField = "start";
DataEndField = "end";
DataTextField = "name";
DataIdField = "id";
DataResourceField = "resource";
}
but still, it was collapsed earlier, i want to be expanded on page load.