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

Need example of using js row filter Template with parameters

2 Answers 65 Views
Grid
This is a migrated thread and some comments may be shown as answers.
J.P.
Top achievements
Rank 1
J.P. asked on 20 Dec 2016, 08:49 AM

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 Answers, 1 is accepted

Sort by
0
Viktor Tachev
Telerik team
answered on 22 Dec 2016, 07:46 AM
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.
0
Vladimir Iliev
Telerik team
answered on 22 Dec 2016, 08:18 AM
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.
Tags
Grid
Asked by
J.P.
Top achievements
Rank 1
Answers by
Viktor Tachev
Telerik team
Vladimir Iliev
Telerik team
Share this question
or