Assign details view dynamically - Front- & Back-End Development - Front- & Back-End Development - Progress Community
 Front- & Back-End Development

Assign details view dynamically

  • Assign details view dynamically
  • Hi,
    I am evaluating sitefinity and wanted to know if I could assign different details view dynamically based on some business criterion on the master list view? 

  • Hi,

     This is not impossible, but would be very difficult to achieve. There is a property in the ContentView, called DetailViewName (there is also a MasterViewName), which can be dynamically changed, but this wouldn't be enough, as the property is persisted in the configurations and the logic that determines which view to load reads the persisted value. So, you will also have to change the logic that loads the different views (Master and detail). However, here comes the problem that the method DetermineCurrentViewName of ContentView is defined as "protected internal virtual" which means that the whole ContentView class would have to be rewritten.

    Svetoslav Petsov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items