This is a migrated thread and some comments may be shown as answers.

Charting With Aggregate calculated values

3 Answers 77 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Vijay
Top achievements
Rank 1
Vijay asked on 14 Jun 2011, 10:27 PM
Hey i am using aggregate calculated values to chart i want to use EmptyPointBehavior to generate chart .
when i have null value in any of the aggregate calculated fields i want to use EmptyPointBehavior.Gap property to chart
i am able to accomplish it with normal column values but i am unable to do that with aggregate values because it is not taking NULL values
if it is NULL it is taking its default blank.

<telerik:GridViewDataColumn Header="Cost Per SqFt" DataMemberBinding="{Binding CostPerSqFt,Converter={StaticResource NullToStringConverter}}" UniqueName="CostPerSqFt">
   <telerik:GridViewDataColumn.AggregateFunctions>
            <Model:TotalCostPerSqFtAggregateFunction Caption="Total Cost Per SqFt:" ResultFormatString=" {0:#}" />
               <Model:CostPerSqFtAggregateFunction Caption="Average Cost Per SqFt:" ResultFormatString=" {0:#.##}"/>
    </telerik:GridViewDataColumn.AggregateFunctions>
</telerik:GridViewDataColumn>

This is my code in that i used Converter={StaticResource NullToStringConverter}} to get NULL values to grid but i am unable to do that for
 AggregateFunctions Fileds.
i have a custom aggregate function which returns NULL.

3 Answers, 1 is accepted

Sort by
0
Pavel Pavlov
Telerik team
answered on 16 Jun 2011, 09:36 AM
Hi Vijay,

If I understand the problem correctly ,I believe  it may be solved by modifying the custom aggregate function to return the right value .

May I see the code of the custom aggregate function and the code for the NullTostringConverter  ?

Regards,
Pavel Pavlov
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
0
Vijay
Top achievements
Rank 1
answered on 16 Jun 2011, 03:21 PM
Thank you for the reply .
i have posted one more post after that check this one

http://www.telerik.com/community/forums/silverlight/chart/null-values-in-aggregate-results.aspx

i see a resolved issue for this

http://www.telerik.com/support/pits.aspx#/tracked/silverlight/2696

This is my problem where i am trying to chart with aggregate results to use EmptyPointBehavior we need to have null values in them because yvalue in datapoint is double we really unable to inset null value in that so the chart is treating it as a zero.

Thanks!
Vijay
0
Vladimir Milev
Telerik team
answered on 20 Jun 2011, 01:58 PM
Hello Vijay,

We are monitoring and updating the thread you mentioned and will close this one if no further questions are present in order to avoid confusion.

All the best,
Vladimir Milev
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
Tags
Chart
Asked by
Vijay
Top achievements
Rank 1
Answers by
Pavel Pavlov
Telerik team
Vijay
Top achievements
Rank 1
Vladimir Milev
Telerik team
Share this question
or