找回密码
 立即注册

QQ登录

只需一步,快速开始

lingee

初级会员

30

主题

100

帖子

298

积分

初级会员

积分
298
lingee
初级会员   /  发表于:2016-8-11 19:36  /   查看:3387  /  回复:3
怎么通过CSS设定FlexGrid的行高(包括Header行)?

3 个回复

倒序浏览
Alice
社区贡献组   /  发表于:2016-8-12 09:45:41
沙发
本帖最后由 Alice 于 2016-8-12 09:47 编辑

Wijmo5 flexgrid行高是通过defaultSize属性设置的(博客:http://blog.gcpowertools.com.cn/post/2016/06/23/flexgrid_cssStyle.aspx)。
代码参考:

  1. // set the height of rows in the scrollable area
  2. flex.rows.defaultSize = 34;
  3. // set the height of rows in the column header area
  4. flex.columnHeaders.rows.defaultSize = 40;
复制代码
请点击评分,对我的服务做出评价!  5分为非常满意!

葡萄城控件服务团队

官方网站: http://www.gcpowertools.com.cn
回复 使用道具 举报
lingee
初级会员   /  发表于:2016-8-12 11:15:05
板凳
不好意思 defaultSize 属性在css里面怎么设置?
.grid {
    defaultSize: 50px;
}
这样?
回复 使用道具 举报
Alice
社区贡献组   /  发表于:2016-8-12 11:59:44
地板
lingee 发表于 2016-8-12 11:15
不好意思 defaultSize 属性在css里面怎么设置?
.grid {
    defaultSize: 50px;

defaultSize在CSS不支持。
请点击评分,对我的服务做出评价!  5分为非常满意!

葡萄城控件服务团队

官方网站: http://www.gcpowertools.com.cn
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部