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
215
Position of the summary result
posted

Hi

I migrate a project using a UltraGrid to WebHierachicalDataGrid.

I calculate the sum and put it on a summary on the left side, because the colums used for the calculation is hidden.

For the UltraGrid i use the following script

Dim   SHESummary as Infragistics.Win.UltraWinGrid.SummarySettings;

TypeMSummary= ultraGrid1.DisplayLayout.Bands[0].Summaries.Add("type_M", Infragistics.Win.UltraWinGrid.SummaryType.Sum, ultraGrid1.DisplayLayout.Bands(0).Columns("type_M"), Infragistics.Win.UltraWinGrid.SummaryPosition.Left);

TypeMSummary.DisplayFormat= "Total  = {0}";

 

Now when using WebHierachicalDataGrid, i try to do the same, but with no success.

Here is the script i use on the initialiedBand Event.

e.Band.Behaviors.CreateBehavior<SummaryRow>();

e.Band.Behaviors.SummaryRow.Enabled =true;

ColumnSummaryInfo unitAmelioration = new ColumnSummaryInfo();

 unitAmelioration.ColumnKey ="Nom_Group";

 e.Band.Behaviors.SummaryRow.ColumnSummaries.Add(unitAmelioration);

 WebHierarchicalDataGrid1.RefreshBehaviors();

 

It is possible to do the same and How?

 

Thank's

Christophe

 

 

  • 20255
    Offline posted

    Let me know if I may be of further assistance.   

  • 20255
    Offline posted

    Hello,

    Thank you for using our forum.

    Currently we do not have such functionality, to add a position for the summary, although I can suggest you to use CSS approach in order to change the position for each summary.

    Each SummarySetting have CssClass which can be used to apply some style to the Summary.