Hello.
It turns out that in the data model - if a field start with a small letter - there can be unpredictable results.
then in the data model:
class TreeData
{
public int Id { get; set; }
public int? Pid { get; set; }
public string Name { get; set; }
public bool HasChild { get; set; }
public bool Expanded { get; set; }
public int Count { get; set; }
public bool Selected { get; set; }
}
change the field "Name" to "name" as :
class TreeData
{
public int Id { get; set; }
public int? Pid { get; set; }
public string name { get; set; }
public bool HasChild { get; set; }
public bool Expanded { get; set; }
public int Count { get; set; }
public bool Selected { get; set; }
}
the result code will not anymore receive any data from this field..