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
40
scroll bar disappears when I scroll to last record
posted

Hi

I copied the xamDataGrid theme/style from the sample stock trading application on the infragistics samples. I have an issue with the datagrid where as I scroll down to the bottom of the grid, the scroll bar disappears and I can no longer scroll using the mouse. The view gets stuck at this position. I can interact with the cells but cannot move the records. It can be reset if i use the filter. 

Files: XamDataPresenterStyle.xml defines the grid style.

below files define the scroll bar style. 

Styles.xml

CommonStyles.xml 

Could you please advise what is the issue here and how to resolve it? 

gridTestScrollBar.zip
Parents
No Data
Reply
  • 16495
    Offline posted

    Hello Alok,

    I have tested the sample application you have attached and I was unable to reproduce the issue you are having when the scroll bar disappears. I have attached a simple .gif file where you can see how it works on my side.

    I observed that your XamDataGrid is located inside a StackPanel. I assume that this can introduce some issues with scrollbars, since the StackPanel will measure its children with infinity in the direction of the orientation. If the orientation is vertical as in your scenario, the children are measured with an infinite height and then arranged with that height. So a list control like a grid or listbox will be as tall as needed to show all their children. If those children happen to be taller than the containing StackPanel then they will just be clipped. You can read more details regarding this from the following thread:

    https://ko.infragistics.com/community/forums/p/106831/503690.aspx#503690

    What I can suggest is to set the HeightInInfiniteContainers  property of VewSettings class in XamDataGrid to some default height, for example:

      <igDP:XamDataGrid x:Name="myGrid"
                        GroupByAreaLocation="None"
                        Width="auto"
                        Height="auto"
                        Style="{StaticResource XamDataGridStyle1}">
          <igDP:XamDataGrid.ViewSettings>
              <igDP:GridViewSettings HeightInInfiniteContainers="250"/>
          </igDP:XamDataGrid.ViewSettings>
     </igDP:XamDataGrid>

    Let me know if you have any questions.

    Sincerely,
    Zhivko
    Associate Software Developer

    ScrollingIssue.zip
Children