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

Grid grouping problem when using row template (MVVM)

4 Answers 148 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Gonzalo
Top achievements
Rank 1
Gonzalo asked on 27 May 2014, 03:30 AM
I saw on this thread the solution to the grouping problem when using row template by using jQuery $.proxy

Now i have my grid with MVVM binding. Is it possible to use $.proxy in data-row-template?

Here's a simplified fiddle of my code: http://jsfiddle.net/MhWVn/2/


4 Answers, 1 is accepted

Sort by
0
Vladimir Iliev
Telerik team
answered on 29 May 2014, 07:20 AM
Hi Gonzalo,

Basically the template binding (MVVM) expects ID of the element which contains the template and calling a function from it is not supported. Possible solution in this case is to either get the grid dataSource from the ViewModel directly or create proxy template (advanced). Please check the example below:

Regards,
Vladimir Iliev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Gonzalo
Top achievements
Rank 1
answered on 29 May 2014, 01:29 PM
Thanks Vladimir, that worked great!
0
Rommel
Top achievements
Rank 1
answered on 09 Aug 2016, 11:07 PM
I am using the same. But formatting is all messed up. It shows lot of space above header columns. Please let me know why this may be happening.
0
Vladimir Iliev
Telerik team
answered on 11 Aug 2016, 05:25 AM
Hello Rommel,

I tried to reproduce the described behavior on our side but to no avail - everything is working as expected. Could you please provide runable example where the issue is reproduced?

Regards,
Vladimir Iliev
Telerik by Progress
 
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
 
Tags
Grid
Asked by
Gonzalo
Top achievements
Rank 1
Answers by
Vladimir Iliev
Telerik team
Gonzalo
Top achievements
Rank 1
Rommel
Top achievements
Rank 1
Share this question
or