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
155
How to get the value of grid.Columns[2].Footer.Total ?
posted

I set the

grid.Columns[2].Footer.Total = Infragistics.WebUI.UltraWebGrid.SummaryInfo.Sum;

grid.Columns[3].Footer.Total = Infragistics.WebUI.UltraWebGrid.SummaryInfo.Sum;

And I want  grid.Columns[4].FooterText is somthing like ((grid.Columns[2].Footer.Total  / grid.Columns[3].Footer.Total ) * 100).tostring() + %

I tried so many ways, but still have difficulty to get the value of grid.Columns[2].Footer.Total and grid.Columns[3].Footer.Total 

I tried in some events as well

i.e. DataBinding ; DataBound; PreRender; InitializeRow;  InitializeFooter

expecially in the event of InitializeFooter the (Infragistics.WebUI.UltraWebGrid.FooterEventArgs e) is useless. it encapsulate nothing related with footer.

Did any body know how to get the value or text of the footer?

Thanks

Lu

Parents
No Data
Reply
  • 45049
    posted

    As far as I know, the actual footer totals aren't stored anywhere accessible in server-side code.  I don't think they're calculated until render-time.

    For workarounds, I can think of three:
    - Manually duplicate corresponding calculations in server-side code.
    - Duplicate corresponding calculations using WebCalcManager.
    - Retrieve the value from the footer using client-side code.

    We already have a feature request on-hand for the ability to access the footer's actual values in server-side code.

Children