Charting With Aggregate calculated values

4 posts, 0 answers
  1. Vijay
    Vijay avatar
    16 posts
    Member since:
    Apr 2011

    Posted 14 Jun 2011 Link to this post

    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.
  2. Pavel Pavlov
    Admin
    Pavel Pavlov avatar
    2039 posts

    Posted 16 Jun 2011 Link to this post

    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
  3. Vijay
    Vijay avatar
    16 posts
    Member since:
    Apr 2011

    Posted 16 Jun 2011 Link to this post

    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
  4. Vladimir Milev
    Admin
    Vladimir Milev avatar
    1061 posts

    Posted 20 Jun 2011 Link to this post

    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
Back to Top