Hello I want to preview my selected record having 3 level hierarchical xamdatagrid with style.
here is my code for last fieldlayout
<igDP:FieldLayout Key="lastDetail" Settings="{StaticResource lastDetailFieldLayoutSettingsKey}"> <igDP:UnboundField Width="145" Name="DateTime" Binding="{StaticResource bindEventDateTimeKey}"></igDP:UnboundField> <igDP:UnboundField Name="IsReset" Width="145"></igDP:UnboundField> </igDP:FieldLayout>
<Style x:Key="lastDetailDataRecordPresenterKey" TargetType="igDP:DataRecordPresenter"> <Setter Property="HorizontalAlignment" Value="Right"></Setter> <Setter Property="Margin" Value="0,0,60,0"></Setter> <Setter Property="MaxHeight" Value="100"></Setter> </Style> <Style x:Key="lastDetailDataRecordCellAreaKey" TargetType="igDP:DataRecordCellArea"> <Setter Property="Background" Value="White"></Setter> <Setter Property="BackgroundAlternate" Value="#EEEEEE"></Setter> <Setter Property="BorderThickness" Value="0"></Setter> <Setter Property="Margin" Value="0"></Setter> <Setter Property="CornerRadius" Value="0"></Setter> </Style>
<igDP:FieldLayoutSettings x:Key="lastDetailFieldLayoutSettingsKey" LabelLocation="Hidden" DataRecordPresenterStyle="{StaticResource lastDetailDataRecordPresenterKey}" DataRecordCellAreaStyle="{StaticResource lastDetailDataRecordCellAreaKey}"></igDP:FieldLayoutSettings>
It is worked in xamdatagrid fine but when i am preview this in report last level HorizontalAlignment is not to right side.
here is my code :
this.previewGrid.DataSource = boxCollection; this.previewGrid.Records.ExpandAll(true);
Report reportObj = new Report();
EmbeddedVisualReportSection section = new EmbeddedVisualReportSection(this.previewGrid); reportObj.Sections.Add(section);
XamReportPreview1.GeneratePreview(reportObj, false, false);
Please give me some idea on this. Here i attached snapshot.
1) upper section will show my actual grid (3 level)
2) lower section will show print preview of that grid
Thanks
Adit Sheth
Hello Adit,
Our developers said that the printing logic has a specialized layout/arrangement logic to handle all the various print specific considerations such as forcing a tabular layout, not clipping columns if they intersect with a page but instead increasing columns that do fit and shifting columns that don't to the next page, repeating groupby information when it spans pages, potentially scaling the arrangement based on the report settings, etc. As part of that it is arranging the records with only as much space as the element needs so the HorizontalAlignment will have no impact, so I have logged Print visual part as new Product idea and sent it directly to our product management team. Our product team chooses new Product Ideas for development based on popular feedback from our customer base. Infragistics continues to monitor application development for all of our products, so as trends appear in requested ideas, we can plan accordingly.
We value your input, and our philosophy is to enhance our toolset based on customer feedback. If your idea is chosen for development, you will be notified at that time. Your reference number for this Product Idea is PI13070010.
If you would like to follow up on your Product Idea at a later point, you may contact Developer Support management via email. Please include the reference number of your Product Idea in the subject and body of your email message. You can reach Developer Support management through the following email address: dsmanager@infragistics.com
Thanks you Stefan.
I have logged this with development under ID: 145340 and I have also created a support ticket on your behalf: CAS-118857-C5R4J7 and have linked the development issue to it, so that you can get automatically updated, when a Service Release containing the fix is available for download. You can get the new version from our website’s “My IG”, “My Keys & Downloads” tags: https://ko.infragistics.com/Membership/Default.aspx?panel=Downloads#Downloads
You can also monitor the support ticket’s progress through the “My Support Activity” tag: https://ko.infragistics.com/Membership/MySupport.aspx