We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Sum and Format TimeSpan

Thread ID:

Created:

Updated:

Platform:

Replies:

131842 Jul 30,2017 01:34 PM Jul 31,2017 08:58 AM WPF 1
loading
Tags: ReportViewer
Forstmeier Peter
Asked On July 30, 2017 01:34 PM

Hi,
i have a list of these  properties.

public DateTime Workday {get;set;}

public DateTime StartWorkAt {get;set;}

public DateTime EndWorkAt {get;set;}

public TimeSpan Duration {

get {return EndWorkAt - StartWorkAt;}

}

The List is grouped by Workday. What i like to do is to display and sum 'Duration' but no success.........

How can i do these.

Thanks

Peter


Vinoth Srinivasan [Syncfusion]
Replied On July 31, 2017 08:58 AM

Hi Forstmeier 
 
Thanks for your interest in Syncfusion Components. 
 
We can sum the “TimeSpan” values using the below expression. We have recently provided this expression support in ReportViewer which will be publicly available in our Volume 3,2017 SP1 release.  
 
=TimeSpan.FromTicks(Sum(Fields!Duration.Value)) 
 
A support incident has been created under your account to share the patch for this support and we request you to login into our Direct Trac support system for further updates on this feature support. Our Direct Trac support system can be accessed from the following link, 
 
 
Regards,  
Vinoth S. 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;