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
230
Hierarchical WebGrid grouping issue
posted

 

Hi Guys, I have a Hierarchical grid which is bound to a DataRelation which produces two bands with a plus sign to expand band 0 to show band 1.  I am also utilizing load on demand for paging and grouping (ViewType="OutlookGroupBy").  Everything seems to work except one scenario:   

 

1) Group the grid by any column.
            Result: The grid is grouped.

 

2) Click one of the expand (+) buttons to see what used to be data of the original band 0 prior to grouping.
            Result: The grid expands and shows me the row.  Now that expanded row also has an expand button that should allow me to see my original band 1.

 

3) Click one of the expand (+) buttons to see what used to be data of the original band 1.
            Result: Grid reloads and takes me back to result of step 1. 

 

When debugging I see that InitializeDataSource gets called twice.  The first time it expands and renders the header of my band 1.  Then it fires again and sends me back to result of step 1.  Basically the data of band 1 never gets displayed on the grid when in sort mode, it just takes me back to the original grouping.

  • 230
    posted

    Been playing with it a little more and noticed that the issue only happens when grouping by a column in Band 0.  If I first expand band 0, then group by the one of the columns of band 1, I am then able to expand both bands without a problem.  InitializeDataSource doesn't even fire on that last expand.  Confused