Need example of using js row filter Template with parameters

3 posts, 0 answers
  1. J.P.
    J.P. avatar
    2 posts
    Member since:
    Oct 2014

    Posted 20 Dec 2016 Link to this post

    Please provide link with example for Template function with the mentioned parameter

    class GridColumnFilterableCellSettingsBuilder// Summary:
            //     Sets JavaScript function which to modify the UI of the filter input.
            public GridColumnFilterableCellSettingsBuilder Template(Func<object, object> handler);

     

     

     

     

  2. Viktor Tachev
    Admin
    Viktor Tachev avatar
    2499 posts

    Posted 22 Dec 2016 Link to this post

    Hi,

    If you would like an example on how you can customize the Filter row in the Grid component please check out the following example.




    Regards,
    Viktor Tachev
    Telerik by Progress
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
  3. Vladimir Iliev
    Admin
    Vladimir Iliev avatar
    2206 posts

    Posted 22 Dec 2016 Link to this post

    Hello,

    Here is small example of utilizing this builder method:

    @Html.Kendo().Grid(Model)
                 .Name("Grid")
                 .Columns(columns =>
                     columns.Bound(o => o.OrderDate)
                            .Filterable(filterable =>
                                 filterable.Cell(cell =>
                                         cell.Template(@<text>
                                         //JavaScript function goes here
                                         </text>)
                                     )
                             )
                 )

    For example of function used in place of the marked comment above you can check the Grid client-side API:

    Regards,
    Vladimir Iliev
    Telerik by Progress
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top