Adding Aggregate function programatically

2 posts, 0 answers
  1. Anwar Arakkal
    Anwar Arakkal avatar
    21 posts
    Member since:
    Nov 2007

    Posted 24 Jan 2010 Link to this post


    Is it possible to add aggregate function dynamically in to Silverlight grid view?
    Can you please send me the sample code. I am able to add group dynamically. but I want to add aggrgate function at the same time

  2. Karlkim Suwanmongkol
    Karlkim Suwanmongkol avatar
    41 posts
    Member since:
    Aug 2012

    Posted 24 Jan 2010 Link to this post

    Hi Anwar,
       Would this Group Aggregates link help?

    CountFunction f = new CountFunction(); 
    f.Caption = "Entries Count: "
    GroupDescriptor countryDescriptor = new GroupDescriptor(); 
    countryDescriptor.Member = "Country"
    countryDescriptor.SortDirection = ListSortDirection.Ascending; 
    countryDescriptor.AggregateFunctions.Add( f ); 
    this.radGridView.GroupDescriptors.Add( countryDescriptor ); 

Back to Top