<
div
data-role
=
"grid"
id
=
"id"
data-groupable="true"
data-group="function(e) {
if (e.groups.length > 1) {
console.log('ciao');
e.groups[0] = e.groups.pop();
}}"
data-columns="[
{ 'field': 'name', 'width': 270 },
{ 'field': 'age' },
]
</
div
>
Error:
how do I fix it?
4 Answers, 1 is accepted
0
Federico
Top achievements
Rank 1
answered on 18 Oct 2017, 08:02 AM
Error: Uncaught TypeError: r[n].call is not a function
0
Hello Federico,
Based on the provided code, I believe the reason for this behavior is the incorrect syntax.
Having said that, please check the MVVM demo of the Grid:
In the above demo, see how the events are handled with the usage of the data-bind object attribute.
I hope this helps.
Regards,
Preslav
Progress Telerik
Based on the provided code, I believe the reason for this behavior is the incorrect syntax.
Having said that, please check the MVVM demo of the Grid:
In the above demo, see how the events are handled with the usage of the data-bind object attribute.
I hope this helps.
Regards,
Preslav
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Neeraj
Top achievements
Rank 1
Veteran
answered on 16 Jan 2018, 12:04 PM
please provide sample demo for , if we want to pre-select grouping column set to unchangeable
0
Hello Neeraj,
I am afraid that I do not understand your project requirements. Having said that, could you please elaborate on them?
I look forward to hearing from you.
Regards,
Preslav
Progress Telerik
I am afraid that I do not understand your project requirements. Having said that, could you please elaborate on them?
I look forward to hearing from you.
Regards,
Preslav
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which
deliver the business app essential building blocks - a grid component,
data visualization (charts) and form elements.