var func = expression.Compile() asFunc<UPSReport, double>;
foreach(var item inmyDataItemsSource)
{
System.Diagnostics.Debug.WriteLine(func(item));
}
If you get only zeroes in the Visual Studio Output window, then I'm afraid you'll have to debug your model. Also, even though I can't see an error in your expression, perhaps it'd be best to set a breakpoint and examine its DebugView property of the expression in the Visual Studio debug visualizer to see if the compiler has interpreted your intent correctly.
All the best,
Yavor Georgiev
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items