Skip to main content
Home  › ... Razor

Dynamic DataSources Tutorials

Tutorial HomeDynamic DataSources
#3 Custom Dynamic DataSources - Data Relationships
The samples can differ based on your Razor base class or if you're running an old version.
Selected: Typed (2sxc 16+) Switch to Dynamic (Razor14 or below)

Custom Dynamic DataSources - Data Relationships

Data can have relationships to other data, allowith code to navigate from one to the other.

The TreeBasic DataSource creates a list of entities which point to the children. This is a simple example how to establish relationships between generated data.

In this example, every entity has a SubItems property, which contains the IDs of the related children. IDs are a common way to declare relationships, but there are other options as well.

⬇️ Result | Source ➡️

Error Showing Content - please login as admin for details.

 

#3 Custom Dynamic DataSources - Data Relationships