Filtering in a template

4 posts, 0 answers
  1. Kibo
    Kibo avatar
    4 posts
    Member since:
    Jan 2016

    Posted 07 Jan Link to this post

    I have a hierarchical grid using a template, but I'm unable to figure out the correct way to use a custom filter in the template.

    I wrote about it on StackOverflow yesterday, but it won't hurt trying the forums either.

    http://stackoverflow.com/questions/34638501/kendo-ui-template-refresh

    I don't mind throwing the code around.

    The structure of the data I use is this: 

     

    [
    {
    "date": "${Y.m}",
    "new": "${new}",
    "active": "${active}",
    "inactive": "${inactive}",
    "clients": [
    {
    "client_id": "${client_id}"
    "administration_name": "${name_of_administration}",
    "created_at": "${created_at}",
    "updated_at": "${updated_at}",
    "is_new": "${new}",
    "status": "${status_id}"
    }
    ]
    }
    }
    ]

  2. Kibo
    Kibo avatar
    4 posts
    Member since:
    Jan 2016

    Posted 07 Jan in reply to Kibo Link to this post

    Better formatting, somehow the forum doesn't like using tabs, and no edit button. 

    [
        {
            "date": "${Y/m}",
            "new": "${new}",
            "active": "${active}",
            "inactive": "${inactive}",
            "clients": [
                {
                    "client_id": "${client_id}"
                    "administration_name": "${name_of_administration}",
                    "created_at": "${created_at}",
                    "updated_at": "${updated_at}",
                    "is_new": "${new}",
                    "status": "${status_id}"
                }
            ]
            }
        }
    ]

  3. Kendo UI is VS 2017 Ready
  4. Kibo
    Kibo avatar
    4 posts
    Member since:
    Jan 2016

    Posted 07 Jan in reply to Kibo Link to this post

  5. Kibo
    Kibo avatar
    4 posts
    Member since:
    Jan 2016

    Posted 07 Jan Link to this post

    Has been fixed, thanks to this SO user.
    Instead of detailInit, you're supposed to use dataBound, which works perfect.

    Thread can be closed.

Back to Top
Kendo UI is VS 2017 Ready