[英]How I can increase the width of the filter menu in the column menu in Kendo Grid?
I know about the possibilities of using filterMenuInit
.我知道使用
filterMenuInit
的可能性。 But this event not fired when I use columnMenu
.但是当我使用
columnMenu
时,这个事件没有被触发。
I tried to use columnMenuOpen
and change the style for elements inside .k-animation-container
, but unfortunately unsuccessful.我尝试使用
columnMenuOpen
并更改 .k .k-animation-container
中元素的样式,但不幸的是没有成功。
Can anybody help me?有谁能够帮助我?
$("#grid").kendoGrid({ columns: [{ field: "id" }, { field: "name" }, { field: "phone" } ], dataSource: [{ name: "Jane Doe", id: 1, phone: "88443558741" }, { name: "John Doe", id: 2, phone: "88443558751" } ], filterable: true, columnMenu: true, });
<link rel="stylesheet" href="https://kendo.cdn.telerik.com/2020.3.1021/styles/kendo.default-v2.min.css" /> <script src="https://code.jquery.com/jquery-1.12.4.min.js"></script> <script src="https://kendo.cdn.telerik.com/2020.3.1021/js/kendo.all.min.js"></script> <div id="grid"></div>
Something like this?是这样的吗?
.k-filter-menu-container {
width: 200px;
}
Example: filter menu width示例:过滤菜单宽度
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.