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

Grid "filter row" auto size - solution

4 Answers 78 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Andrés
Top achievements
Rank 1
Andrés asked on 01 Oct 2014, 06:10 PM
Hi!
I started using the new filter row and I think it's great!
However, in busy grids with several columns it looks awful. The filter controls don't resize, so in narrow columns it get's cut off and in wide columns the space is wasted.

I created a helper function that through some event handlers, attempts to fix this. All you need to do is call "grid.autoFixFilterWidth()"

http://jsbin.com/wipazupexaqi/3/edit


I really wish something like this would be implemented by default, hopefully using css rules and not some hacky js like my solution, but in the mean time this works for me. Ymmv.
Hope it helps someone!
Regards

Andrés

4 Answers, 1 is accepted

Sort by
0
Alexander Popov
Telerik team
answered on 03 Oct 2014, 10:26 AM
Hello Andrés,

Thank you for taking the time to share your feedback and solution here. I would encourage you to submit a new feature request on or feedback portal, so it could be publicly discussed and voted for.
On a related note - here is another example how the filter row widgets could be re-sized.

Regards,
Alexander Popov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Andrés
Top achievements
Rank 1
answered on 03 Oct 2014, 02:53 PM
Thanks Alexander!
Here's the link to the request for people to vote:

http://kendoui-feedback.telerik.com/forums/127393-telerik-kendo-ui-feedback/suggestions/6518086-autosize-the-filter-controls-in-the-new-filter-row

Cheers
0
Donald
Top achievements
Rank 1
answered on 06 Mar 2015, 05:22 PM
I'm having trouble finding the documentation on this new feature. I am using Kendo UI Pro Q3 2014. Do you have a link?
0
Alexander Popov
Telerik team
answered on 10 Mar 2015, 11:59 AM
Hello Donald,

The auto-resizing of the filter row cells is not optional and thus it is not explicitly mentioned in the documentation. We would be happy to answer any questions that you might have regarding it.

Regards,
Alexander Popov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
Andrés
Top achievements
Rank 1
Answers by
Alexander Popov
Telerik team
Andrés
Top achievements
Rank 1
Donald
Top achievements
Rank 1
Share this question
or