Hi,
I have a scroll bar in the main page I don’t want one for the XamDataGrid, how to disable the vertical scrollbar in xamdatagrid.? The vertical scroll bar in XamDataGrid is always seen. Plus we should be able to scroll through all the records in the XamDataGrid with the help of scroll bar in the main page.
Please help with this.
Thanks
Arpita
Hello,
You can create a style for the RecordListControl and in its ControlTemplate disable the ‘VerticalScrollBarVisibility’ like :
<Style TargetType="{x:Type igDP:RecordListControl}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type igDP:RecordListControl}">
<ScrollViewer CanContentScroll="true"
VerticalScrollBarVisibility="Disabled"
HorizontalScrollBarVisibility="Visible" >
<ItemsPresenter/>
</ScrollViewer>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
If you have any other questions on this matter, feel free to ask.
Hi ,
This hides the vertical scrollbar. But my problem is still there I have 80 records if I disable scrollbar in XamdatGrid I am not able to scroll all the records through my main scrollbar which is set for entire page. If I disable vertical scrollbar for XamDataGrid I only see some 20 records in XamDataGrid.
Yanko,
We too facing the similar problem at our side. We have a grid with 1000s of records. We have few controls above and below the grid but everything is in a scrollview. Fine. But when I try to print, it prints all the controls but the grid data is showing only few. It does not print the whole datagrid items. Please look into the attached items.
We need,
1. Page should display all the data in the grid (No matter how big the windos is). But it should not show any scorll bar to the datagrid.
2. When we print the page, it should print all the page content along with all the data in the grid in landscape paper/PDF/XPS.
3. We do not want to add top part in a sepearate section and grid alone in another section and footer in another section. We want to show as it shows in UI.
Our ultimate goal is, it should not cut down even a single record from the grid along with the all the visible controls (textbox,labels etc...). Please suggesst even if you have anyother way (like, hiding and showing the grid/controls or DocumentViewer etc..)/
We are waiting for your reply.
Hello Rajan,
I have been looking into your post and it seems this is the same issue we have already discussed in case with number CAS-124056-S3H5H0. I have submitted a development issue regarding this in our internal track system with number 154297. When the issue is fixed, you will be automatically notified.
Thank you for understanding.
Hello, has this issue been fixed?
Hi Vince,
Thank you for your question. This is not fixed because this is a design behavior. When an EmbeddedVisualReortSection is constructed with a UIElement (that doesn't implement the IEmbeddedVisualPaginator interface) a RenderTargetBitmap is created based on the element's render size. The above sample is using a StackPanel. When it renders itself into the bitmap it only shows what is visible in the UI.
Let me know, if you need any further assistance on this matter.
Hi Yanko, sorry but I am a bit confused. Here is the behavior that I am observing:
With a WPF Window I have a ScrollViewer that contains a Grid that contains a XamDataGrid. I disable the scrolling of the items within the XamDataGrid because I want to display a single vertical scrollbar for the entire window, including any content above the XamDataGrid. If I bind the XamDataGrid to a large number of items (say 200), the vertical scrollbar will show up for the window. The XamDataGrid will be slightly larger than the size of the window to accommodate some of the 200 items, but even if I scroll to the bottom of the window I cannot see all of the items in the XamDataGrid (it cuts off around item #45). If, however, I focus on the XamDataGrid and use the arrow keys I am able to scroll through all 200 records.
The behavior is different than a standard System.Windows.Controls.DataGrid. The ScrollViewer attached to the Window allows me to scroll through all 200 items.
I have attached a sample app to demonstrate.
Regards,
--Vince
Thank you for reply. I have created a new case with number CAS-142611-S4G4Z6 about your issue in order to continue our discussion there.
I have been looking into your requirement and in order to achieve the desired behavior you could set the ‘HeightInInfiniteContainers’ property to “Infinity”:
<igWPF:XamDataGrid.ViewSettings>
<igWPF:GridViewSettings HeightInInfiniteContainers="Infinity"/>
</igWPF:XamDataGrid.ViewSettings>