简体   繁体   中英

Kendo Grid set the minimum column width when screen is resizing

How to set the minimum column width of kendo grid when screen is resizing? For example I had this grid and I want to set the Description column min width to 300px

I have tried:

  1. media: "(min-width: 300px)"
  2. I found this article but it only works if resizing the column in the grid.

DEMO IN DOJO

Try using a row template, this will allow you to target individual columns with CSS and further customise sizing with using Media Queries.

https://demos.telerik.com/kendo-ui/grid/rowtemplate

Instead of directly putting css to element you can add class to parent element of Grid and catch the grid column class using that parent element class and then add the media query on that.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM