Know group.Key in a AggregateFuncion

8 posts, 0 answers
  1. Salvador
    Salvador avatar
    9 posts
    Member since:
    Nov 2012

    Posted 13 Nov 2012 Link to this post

    I like to know waht group.key call to the aggregate function.
    It's possible?

    Thanks.
  2. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 13 Nov 2012 Link to this post

    Hi,

    I am not sure what your question is. Would you please explain better what is the result you would like to achieve?

    Regards,
    Didie
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. Salvador
    Salvador avatar
    9 posts
    Member since:
    Nov 2012

    Posted 13 Nov 2012 Link to this post

    Well, when i group, the system go to the AggregateFunction.
    This is the function for example.

        public static class AgregateFunction
        {      public static String F_Entregados<TSource>(IEnumerable<TSource> source)
            {
                  HERE, I WANT TO KNOW WHAT GROUP COLUMS "FIRE" THE FUNCTION
                  FOR EXAMPLE     COMPANY -> STATE

                  AND OTHER QUESTION IS THAT, I HAVE IN  source   ALL DATA IN THE GROUP (COMPANY -> STATE)

                  CAN I ACCES HERE TO ALL THE DATA WITHOUT GROUP??

             }
        }


  4. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 14 Nov 2012 Link to this post

    Hello,

    Unfortunately such an information about the Groups is not available with the AggregateFunction method when it is invoked. What do you mean by : "CAN I ACCES HERE TO ALL THE DATA WITHOUT GROUP??", do you mean all the Data bound to the GridView?

    All the best,
    Didie
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  5. Salvador
    Salvador avatar
    9 posts
    Member since:
    Nov 2012

    Posted 14 Nov 2012 Link to this post

     public  static String F_Confirmados<TSource>(IEnumerable<TSource> source)

    In source only come the data that is in the group, but not all of the dadagridview. 
    I want to acces to all.

  6. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 14 Nov 2012 Link to this post

    Hi,

    You could access the data bound to the GridView through the RadGridView.ItemsSouce collection or from the bound collection directly.

    Regards,
    Didie
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  7. Salvador
    Salvador avatar
    9 posts
    Member since:
    Nov 2012

    Posted 14 Nov 2012 Link to this post

    For example
    I have 3 category
        - A, B, C

    i want that my agregate function say
     Group  A     COUNT(A) = 23      COUNT(A) / COUNT(B)      COUNT(A) / COUNT(C) 

  8. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 15 Nov 2012 Link to this post

    Hi,

    I would suggest you to check this help article on more information for the different options to define a custom aggregate.

    All the best,
    Didie
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top