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
540
Update Grid Summary For Selected Rows
posted

Hi,

In my application, for the wingrid i have added a Summary for few of the columns. The summary works fine when the grid is bounded with data. Also when any filter is applied for any of the grid columns etc.

For the gird i have set the option to select multiple rows (by moving the mouse over rows headers , also holding the shift button and click on the required rows)

Now we want to refresh the Summary total for the selected records (rows). (sample screen shot attached, selected records background color are changed)

Can anyone suggest how to refresh the summary for the only selected rows  ?

Thanks,

Narasimha

 

Parents
No Data
Reply
  • 69832
    Offline posted

    You can create a class that implements the ICustomSummaryCalculator interface (only three methods). This is the interface with which the grid's summary compilation logic communicates, so you effectively take control over the summary calculations by doing this. In your 'AggregateCustomSummary' method implementation, you would add the cell values only for the selected rows.

Children