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
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
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.
Thank you
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
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
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
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
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
Hi,
Any news for a possible workaround? I posted it 1 month ago...
Thank you
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
Thank you.
I replied here because they said to continue on this thread, sorry.