Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
25
Overwriting ExpandableFieldRecordPresenterStyle
posted

Hello

I am trying to implement my custom row details template, however i seem to not be able to achieve anything with this code:

Fieldsettings:

<igDP:FieldSettings
ExpandableFieldRecordExpansionMode="Default"
ExpandableFieldRecordPresenterStyle="{StaticResource RowDetailsStyle}"
>
</igDP:FieldSettings>

and my window resources:

<DataTemplate x:Key="RowDetailsTemplate">
<TextBlock>Worked</TextBlock>
</DataTemplate>
 
<Style x:Key="RowDetailsStyle" TargetType="{x:Type igDP:ExpandableFieldRecordPresenter}">
<Setter Property="TemplateGridView" Value="{StaticResource RowDetailsTemplate}" />
</Style>

Anybody notice the error?

  • 138253
    Offline posted

    Hello Thomas,

     

    It has been a while since you have made your post, in case you still need support I will be glad to assist you further. I suppose the other community members can benefit from this answer as well. I have been looking into your post I can say that the ExpandableRecordPresenter’s TemplateGridView Property’s type is ControlTemplate and this is why your behavior occurs. If you want to re-template it you can create a ControlTemplate instead of DataTemplate.

     

    Feel free to write me if you have further questions.