Grouping with column template not working

11 posts, 0 answers
  1. Steve
    Steve avatar
    22 posts
    Member since:
    Feb 2016

    Posted 22 Mar 2016 Link to this post

    Hi,

        I read many thread talking about grouping not working with row template, but didn't find my problem with grouping and column template.

    I have a simple grid (simplified version) here:

    groupable: true,
      filterable: { extra: false },
      toolbar: ["create"],
      columns: [
                        { command: ["edit", "destroy"], title: " ", width: "200px" },
                        {
                            field: "Number",
                            title: "Numéro",
                            width: 140
                        },
     
                        {
                            field: "Parent",
                            title: "Parent",
                            template: "#= Parent == null ? '' : Parent.Number #",
                            editor: projectDropDownEditor,
                            filterable: {
                                extra: false,
                                field: "Parent.Number"
                            }
                        }
      ],

     

    Because my parent column is a column template based on an object with Number and Id, grouping is not working.  Do you have any idea how to fix it?

     

    Thank you for your help

     

  2. Milena
    Admin
    Milena avatar
    257 posts

    Posted 23 Mar 2016 Link to this post

    Hello Steve,

    Could you try the implementation, demonstrated in the forum thread below?

    http://www.telerik.com/forums/grid-grouping-problem-when-using-row-template-bug

    In case this does not help, please provide a runnable example of your scenario for further investigation. 

    Regards,
    Milena
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  3. Steve
    Steve avatar
    22 posts
    Member since:
    Feb 2016

    Posted 23 Mar 2016 in reply to Milena Link to this post

    Hi,

       I cannot use the example you provide, because it is a row template and not a column template grouping.  I did a little sample using Kendo UI Dojo.

    Example with column template

    Thank you

     

  4. Milena
    Admin
    Milena avatar
    257 posts

    Posted 25 Mar 2016 Link to this post

    Hello Steve,

    Please excuse me for the misunderstanding.

    In regard of the observed behavior I am afraid that it is not supported scenario. 

    In order Grid to be able to group by "actors", it should know by which field exactly should group by("actors.Id" or "actors.Name"). However, in your scenario it is not possible to specify the exact field, because actors.Id and actors.name are not accessible for all items in the data source(in some of the items "actors" is null ). You can see an example that if provide data for "actors" in all items, the grouping functionality will work as expected.

    Additional information for this limitation could be found also here.

    Regards,
    Milena
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  5. Steve
    Steve avatar
    22 posts
    Member since:
    Feb 2016

    Posted 25 Mar 2016 in reply to Milena Link to this post

    Hi,

        Thank you for your help.  However this post was more than 1 year ago.  It is still not plan to fix this issue?  I have more than 20 differents grids and I need extra work for all of them to enable grouping.  It is not a solutionveru efficient...

    Thank you

  6. Milena
    Admin
    Milena avatar
    257 posts

    Posted 28 Mar 2016 Link to this post

    Hello Steve,

    You can log a feature request with your suggestions in our feedback portal and the dev team will consider if such improvement could be introduced to the control.

    Regards,
    Milena
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  7. Steve
    Steve avatar
    22 posts
    Member since:
    Feb 2016

    Posted 28 Mar 2016 in reply to Milena Link to this post

    Hi,

       I will log it, but for now, I have no solution.  I tried this solution, but it does not works.

    I always have this client error without and with your changes and only with this column containing nulls...

    angular2-polyfills.js:143 Uncaught SyntaxError: Unexpected identifier

     

    Thank you for your help

  8. Milena
    Admin
    Milena avatar
    257 posts

    Posted 30 Mar 2016 Link to this post

    Hello Steve,

    As I mentioned in my previous post, the desired behavior is not supported. Unfortunately, I am not able to provide a workaround for this behavior, because currently there is no a good solution for such scenario. 

    Regards,
    Milena
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  9. Steve
    Steve avatar
    22 posts
    Member since:
    Feb 2016

    Posted 16 Apr 2016 in reply to Milena Link to this post

    Hi,

       Any news for a possible workaround?  I posted it 1 month ago...

     

    Thank you

  10. Milena
    Admin
    Milena avatar
    257 posts

    Posted 19 Apr 2016 Link to this post

    Hello,

    I would suggest you to  follow the status of the feedback item.  When our dev team review the item, they will update the status of the item and will provide the relevant information if needed.

    Regards,
    Milena
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  11. Steve
    Steve avatar
    22 posts
    Member since:
    Feb 2016

    Posted 19 Apr 2016 in reply to Milena Link to this post

    Thank you.

    I replied here because they said to continue on this thread, sorry.

Back to Top