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

[Solved] filterable template

3 Answers 160 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Gregor
Top achievements
Rank 1
Gregor asked on 16 Oct 2014, 11:50 AM
Hi
I´m using your grid and have to set the width of the columns. I´m also using the filter feature in row mode. 
If i´m doing so, the filter column has a default width which is greater than my column so your filter icons are not shown.
I´ve tried to set the template for the column, which is working with Q2 but no more with your servicepacks as you
changed the templates.

Could you please post a sample with filterable template where you change the colums width.


Thank's in advance.

Gregor

3 Answers, 1 is accepted

Sort by
0
Gregor
Top achievements
Rank 1
answered on 16 Oct 2014, 11:52 AM
somthing like
filterable: {cell: {operator: "contains",template: function(options){ ....... width:33px ....
0
Peteriman
Top achievements
Rank 1
answered on 16 Oct 2014, 04:27 PM
 Try this? http://dojo.telerik.com/uveVo/8

             columns: [
                {
                  field: "id",
                  title: "ID Number",
                  width: 100,
                  filterable: {
                    cell: {
                      inputWidth: 50
                  }
                }]
0
Gregor
Top achievements
Rank 1
answered on 17 Oct 2014, 05:52 AM
That´s it.  thanks a lot :)
Tags
Grid
Asked by
Gregor
Top achievements
Rank 1
Answers by
Gregor
Top achievements
Rank 1
Peteriman
Top achievements
Rank 1
Share this question
or