Grid grouping problem when using row template (MVVM)

5 posts, 0 answers
  1. Gonzalo
    Gonzalo avatar
    5 posts
    Member since:
    May 2014

    Posted 26 May 2014 Link to this post

    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/


  2. Vladimir Iliev
    Admin
    Vladimir Iliev avatar
    2172 posts

    Posted 29 May 2014 Link to this post

    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!
     
  3. Kendo UI is VS 2017 Ready
  4. Gonzalo
    Gonzalo avatar
    5 posts
    Member since:
    May 2014

    Posted 29 May 2014 in reply to Vladimir Iliev Link to this post

    Thanks Vladimir, that worked great!
  5. Rommel
    Rommel avatar
    1 posts
    Member since:
    Mar 2016

    Posted 09 Aug Link to this post

    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.
  6. Vladimir Iliev
    Admin
    Vladimir Iliev avatar
    2172 posts

    Posted 11 Aug Link to this post

    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.
     
Back to Top
Kendo UI is VS 2017 Ready