+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / Diffent ways of creating Master Details page

Diffent ways of creating Master Details page

2 posts, 0 answered
  1. vee mat
    vee mat avatar
    5 posts
    Registered:
    02 Apr 2010
    03 Apr 2010
    Link to this post
    Hi All,

         I am working on evaluation version of the product and looking for some basic answers. I am using the latest 3.7 download.

    I am not finding any good examples  around master/details of news and generic content. (products, news etc)
    Different ways of displying generic content list  - like tree, list, bulleted list based on Category or Tag.
    Then clicking on this master list, on same page show the details of the same item.

    Left side of page I need list of categories, subcategories in tree or list. Clicking on a category , I need to show the details on righ hand side of same page. (like details of the product). I should be able to default to first item detils on selection of category.
    I want to do the same with news content. Also how to customize these default master lists and details list items.

    I know I am missing something, because I feel this is basic need and not finding any good examples.

    Any examples, directions  is graeatly appreciated.


    Thanks
    Vee
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    04 Apr 2010
    Link to this post
    Hello vee mat,

    Generic content items have flat structure and you cannot show them as a tree, because you will have only one node.

    On a page you could drop a ContentView based control( ContentView, NewsView, BlogPosts, EventsView etc) and CategoriesTree control. Then you have to configure the following properties of the CategoryTree control

    • CategoryContentUrl - url to a page where you have dropped ContentView based control.
    • CategoryKey  - this key should be the same as the CategoryKey set for the ContentView based control. You could check what has been set under QueryString Keys for your ContentView control.
    • CategoryKeyType- this key should be the same as the CategoryKey set for the ContentView based control. You could check what has been set under QueryString Keys for your ContentView control.
    • ProviderName - set the provider name which the control will use to bind the control. By default it is Generic_Content.
    To customize master and details view, you need to map the external templates - How to map a template, Working with presentation modes.

    Mapping these templates allows you to change the html and the way that the text/links will appear. For some complex manipulation, you have to override the control behavior by creating a custom class that inherits from the desired control.

    Greetings,
    Ivan Dimitrov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
2 posts, 0 answered