In a treeview we have different model classes merged into a single model for consumption by the treeview. For example, an organization model and a person model. Based upon an attribute in the treeview model, we would like to present different templates. These templates would be set back on the server-side as the templates are stored in a database. The templates are designed by the end-users. Thus, when an organization row appears in the treeview, it uses the orgTemplate, and when the persons under the organization appear, they use the personTemplate.