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
1100
IsExpanded in InitializeRecord event results in bizarre scrolling behavior
posted

If I do the following:

 

 

 

private void scannedGrid_InitializeRecord(object sender, Infragistics.Windows.DataPresenter.Events.InitializeRecordEventArgs e)

{

e.Record.IsExpanded =

true;

 

 

 }

Then scrollbars appear and there should be no reason for them with my DataSet. Clicking on child records also causes slight automatic vertical scrolling at this point. Is this a bug? If so, I need some kind of workaround that will reset the scrolling area.

Thanks. 

Parents
No Data
Reply
  • 1100
    posted

    I was able to work around the vertical scroll anomoly by putting my e.RecordIsExpanded=true statement in an asynchronous method that I dispatcher-invoked in the InitializeRecord event. So that issue in particular is a timing issue. I used DispatcherPriority.Loaded in case anyone is wondering.

    In the meantime, I took a look at the Control demo that comes with the infragistics controls. On the SQL demo (for XamDataGrid), if I delete all but the top two records and expand 3 levels deep and then contract one level then the scrollbar appears. It doesn't cause any weird veritical scrolling to automatically happen but it's still there and very incorrect.

    Any workaround for that as it is affecting me?

Children