Assign details view dynamically

Posted by Community Admin on 04-Aug-2018 21:52

Assign details view dynamically

All Replies

Posted by Community Admin on 26-Dec-2011 00:00

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? 

Thanks,
Sharath

Posted by Community Admin on 28-Dec-2011 00:00

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.

Regards,
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

This thread is closed