Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
830
Stop child property from firing until "+" clicked
posted

I have a 2 Custom objects called BLPerson and BLProject. BLPerson contains a child property called Projects which is a collection of BLProject. Property Projects goes to the database and gets all the projects that person owns.

When I create an instance of BLPerson the Projects property does not fire until it is referenced however if if i point the BLPerson instance to a grid whose DisplayLayout.LoadStyle=LoadOnDemand then the Projects property fires immediatley i.e before the User clicks on the "+" sign to show the Projects child band.

Is there a way to only have the child properties of my object fire when the User clicks on the "+" sign to open them ? Some of the objects contain several children so it is quite an overhead to get the data if its not required.

Thanks john