I have a SfTreeView<PersonModel> where the PersonModel is defined as
public class PersonModel
{
public string Code { get; set; }
public string Name { get; set; }
public bool Expanded { get; set; }
public bool Selected { get; set; }
public bool HasDirectReports { get; set; }
public IList<PersonModel> DirectReports { get; set; } = new List<PersonModel>();
}
The SfTreeView is hydrated with data, as I've been able to determine in the following method:
private async Task<string[]> GetSelectedPeople()
{
var people = await PeopleTreeView.GetTreeData();
#if DEBUG
Console.WriteLine($"PeopleTreeView is null: {PeopleTreeView == null}");
Console.WriteLine($"Contents of PeopleTreeView: {JsonConvert.SerializeObject(PeopleTreeView)}");
Console.WriteLine($"Contents of people: {JsonConvert.SerializeObject(people)}");
Console.WriteLine($"People is null: {people == null}");
Console.WriteLine($"All Selected: {people.AllChecked()}");
#endif
if (!people.AllChecked())
{
return people.CheckedPeopleArray();
}
else
{
return null;
}
}
The problem now arises in 18.2.0.55, and previously did not arise in Syncfusion.Blazor version 18.2.0.46, where the output of the GetTreeData(); returns null, though the SfTreeView is not null and the data contained within seems to be valid. If this is not a bug how should I go about re-writing the aforementioned source?