From the code above the item is cast to the business object you're using ( it's Item in the sample). When there are no children, they are added to the Item. In this way, the Expand method works fine on demand update.
I hope I could be of help.
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Telerik Feedback Portal
and vote to affect the priority of the items