Welcome to the Xceed Community | Help
Community Search  

MasterDetail question wrt customizing DetailConfiguration(only) as a Card view

Sort Posts: Previous Next
  •  04-17-2008, 8:30 PM Post no. 11570

    MasterDetail question wrt customizing DetailConfiguration(only) as a Card view

    I have a pretty simple question. (I think).

    I've been playing around with this really good datagrid, and I'm starting to experiment with the MasterDetails feature which seems extremely promising.

    What I'm currently trying to figure out, is if it's possible to make the DetailConfiguration display in 'Card' view style.  For example, I want to use the DataGrid in a TableView style, but when expanding  a row to see the detail configuration, I would like that to display the details in Cardview mode.
    Currently, it doesn't look like the DetailConfiguration objects have a 'View' property, but they seem to display as if they were full DataGridControls.

    It doesn't necessarily have to be the 'Card' view,  but it would be nice to be able to re-use existing views.  Or is there a 'hard' way of doing it where the DataTemplate of the DetailConfiguration can  be manually overriden/defined with generic WPF panels/controls?

  •  04-18-2008, 9:07 AM Post no. 11584 in reply to 11570

    Re: MasterDetail question wrt customizing DetailConfiguration(only) as a Card view

    Unfortunately, it is not possible to specify alternate views for Details. Currently the Master/Detail feature is only available for TableView.

    The scenario you are trying to achieve was a real bugger for us. We wanted to be able to provide such capabilities but technical problems prevented us from doing it.

    Currently, there is only one panel that layouts all elements ( master and details confounded ). It would be possible have detail rows that looks like card, but they would remain arranged as a TableView (stacked one over the other, not side by side ).

    If you still wish to experiment with this, the way to achieve this ( card look in a TableView layout ), here is the method:

    <DetailConfiguration RelationName="myRelation" ItemContainerStyle="{StaticResource {xcdg:Themekey TargetViewType=xcdg:CardView, ThemeType=xcdg:AeroNormalColorTheme, TargetElementType=xcdg:DataRow}}"/>

    Marc Laroche
    Software Developer
    Xceed Software Inc.


    I don’t suffer from insanity, I enjoy every minute of it. - Unknown
    Filed under:
View as RSS news feed in XML
Contact | Site Map | Reviews | Legal Terms of Use | Trademarks | Privacy Statement Copyright 2008 Xceed Software Inc.