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

Grouping with column template not working

10 Answers 546 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Steve
Top achievements
Rank 1
Steve asked on 23 Mar 2016, 02:37 AM

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

 

10 Answers, 1 is accepted

Sort by
0
Milena
Telerik team
answered on 23 Mar 2016, 09:08 AM
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!
 
0
Steve
Top achievements
Rank 1
answered on 23 Mar 2016, 10:20 PM

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

 

0
Milena
Telerik team
answered on 25 Mar 2016, 09:28 AM
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!
 
0
Steve
Top achievements
Rank 1
answered on 25 Mar 2016, 12:27 PM

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

0
Milena
Telerik team
answered on 28 Mar 2016, 10:40 AM
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!
 
0
Steve
Top achievements
Rank 1
answered on 28 Mar 2016, 11:27 PM

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

0
Milena
Telerik team
answered on 30 Mar 2016, 12:12 PM
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!
 
0
Steve
Top achievements
Rank 1
answered on 16 Apr 2016, 08:50 PM

Hi,

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

 

Thank you

0
Milena
Telerik team
answered on 19 Apr 2016, 02:59 PM
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!
 
0
Steve
Top achievements
Rank 1
answered on 19 Apr 2016, 10:02 PM

Thank you.

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

Tags
Grid
Asked by
Steve
Top achievements
Rank 1
Answers by
Milena
Telerik team
Steve
Top achievements
Rank 1
Share this question
or