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
90
Fitering Doesn't applying to footer total
posted

Hi,

 

I am using ultrawebgrid 7.3, at one of my pages i am showing some data with grid and for one column in footer i am showing the total amount.

My problem is that when i type some text in the Filter row this filters the grid rows according to text but it doesnt recalculate the total in footer.  This seems to be strange, while seeing the old total with new rows.

I am also showing some summary at page header regarding the grid data i also want to update this how can i do this

Please help me!

Parents
No Data
Reply
  • 2677
    posted

    Hello,

    Sorry for the lengthy time in my response.  As long as the you have the AllowRowFiltering Property set to OnServer, the footer total should update as long as it is part of the columns footer total.  The code below has this.  If you are filtering OnClient, then the value will not update.  If you want to do this without a postback, you will have to enable LoadOnDemand in the WebGrid.  If you need any more help, please let me know.  Depending on how you implement the sorting will depend on how we will update the summary in the page header.  We may have to use some javascript to do this. 

     

    e.Layout.Bands[0].Columns.FromKey(

    "Column_3").Footer.Total = Infragistics.WebUI.UltraWebGrid.SummaryInfo.Sum;

    e.Layout.FilterOptionsDefault.AllowRowFiltering = Infragistics.WebUI.UltraWebGrid.

    RowFiltering.OnServer;

Children
No Data