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
Expand the GroupByRecordPresenter
posted

How does one make the GroupByRecordPresenter expand so it displays its child nodes the first time it becomes visible?  I attempted to do it through a style but it didn't have any affect:

 

<Style TargetType="{x:Type igDP:GroupByRecordPresenter}">

<Setter Property="IsExpanded" Value="True"/>

</Style>

Parents
No Data
Reply
  • 2125
    posted

    Hi,

    Setting  the IsExpanded property in the GroupByRecordPresenter style will not work probably because
    of the timing issues. In any case, you should use the InitializeRecord event to expand group-by records.


    public void xamDataGridName_InitializeRecord( object sender, InitializeRecordEventArgs e )
     {
         if(e.Record is GroupByRecord)
            {
                 e.Record.IsExpanded = true;
            }
     }


    Best Regards,
    Yanko

Children
No Data