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?
<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?
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.
i want to implement a row detail template, the template would have 3 tabs with some controls in each...
can some one send me sample code to achieve this, i am using igDP:XamDataGrid
Hello,
If you could send me an isolated sample project where your issue is reproduced, I would be able to investigate it further for you.
Looking forward for your reply.
Thx for providing the solution, the code is similar to what i have coded, in the row detail, i have grids and i am not loading the grids when the parent grid loads, I am just loading the contents of the 1st grid(grid in the first tab which is selected by default) , other grids (in other tabs) are planned to load on tab index changed event, which does not fire... also tabs are not loading horizontally.
the grid in first tab is showing up since it has data also i feel it is not the tab that is loading, even if we remove the control template defined for the grid, it displays in the same way...
so, the tabs are not loading...
please refer the screen shots..
I have created a sample project for you on your behalf. Also I can suggest you see this link from our online documentation:
http://help.infragistics.com/Help/NetAdvantage/WPF/2011.2/CLR4.0/html/InfragisticsWPF4.DataPresenter.v11.2~Infragistics.Windows.DataPresenter.RecordPresenter.html
where you can find more information what is needed to create your custom nested panel for the child records.
Hope this helps you.
I mean the XAML code