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
20
RootTable SummaryColumnInfo in Hierarchical Grid c#
posted

Hi,

I have hierarchical data grid with multiple children.

I easily set their SummaryColumnRow with this code for each child

SummaryRow sr = band.Behaviors.CreateBehavior();
sr.SummariesCssClass = "summaryRow";
//sr.ShowSummariesButtons = false; //to disable the buttons in header
sr.ColumnSummaries.Add(csi); /csi is ColumnSummaryInfo

but the problem when i tried to set the rootTable behavior, it doesn't work

SummaryRow sr = hierarchialGrid.Behaviors.CreateBehavior();  //hierarchialGrid is grid obj in aspx
hierarchialGrid.Behaviors.SummaryRow.Enabled = true;
sr.SummariesCssClass = "summaryRow";
sr.ColumnSummaries.Add(csi);

here is .aspx: 

<ig:WebHierarchicalDataGrid ID="hierarchialGrid" runat="server" Width="100%"
EnableAjax="true" HeaderCaptionCssClass="headerCSS">
<ExpandCollapseAnimation SlideOpenDirection="Auto" SlideOpenDuration="400" SlideCloseDirection="Auto"
SlideCloseDuration="400" />

</ig:WebHierarchicalDataGrid>

and i'm binding data in pageLoad

hierarchialGrid.DataSource = getDataSet();
hierarchialGrid.DataBind();

//setting summary info here

hierarchi is as follows, and i'm setting summary footer for [Customers]

[Customers] > [Orders]> [Order Details]

The problem is only with the root Table/node.

I'm new to Infragistics & .net

please guide if i'm missing something.

Thanks

Parents Reply Children
No Data