`
eimhee
  • 浏览: 2151244 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

Last column to auto-adjust - Ext JS

阅读更多
I can't see that this is currently possible, so please enlighten me if you know the answer:

I have a grid in a GridPanel where I wan't the last column to always fill up the rest (the 'whitespace' to the right of the grid) if the total width of the columns is not as wide as the GridPanel itself.

How to do this... if it can be done?
Reply With Quote
  #2  
Old 03-02-2007, 10:35 AM
Default

It will involve some calculations, to do it efficiently it should be handled internally. I will look into it.
Reply With Quote
  #3  
Old 03-02-2007, 12:29 PM
Default

Quote:
Originally Posted by jacksloc
It will involve some calculations, to do it efficiently it should be handled internally. I will look into it.
Hey Jack... I would like to have such a function too.

Thanks again for your job.
Reply With Quote
  #4  
Old 03-02-2007, 01:16 PM
Default

For the domino developers out there, this would also be nice since Domino has a setting for 'views' (that we are displaying in the grid) to 'extend last column to window width'. I personally, would prefer if there were a way to pick *any* column as the one to grow/shrink automatically. Or (and maybe you already have this), you could have a minWidth and maxWidth and the grid will auto resize columns based off of these as well. Maybe the grid could even have a setting for minHeight and maxHeight for rows.
Reply With Quote
  #5  
Old 03-02-2007, 02:43 PM
Default

Quote:
Originally Posted by jacksloc
It will involve some calculations, to do it efficiently it should be handled internally. I will look into it.
Thanks Jack... it would be really nice!
Reply With Quote
  #6  
Old 03-02-2007, 02:48 PM
Default

I'd have to second that the "extend last column to window width" would be much better if it defaulted to the last column, but could be configurable.
Reply With Quote
  #7  
Old 03-03-2007, 08:06 PM
Default

Quote:
Originally Posted by JeffHowden
I'd have to second that the "extend last column to window width" would be much better if it defaulted to the last column, but could be configurable.
I would 2nd this, too.
Reply With Quote
  #8  
Old 03-04-2007, 04:54 AM
Default

Ok, I added it.

autoExpandColumn config option, that will need to be the id of a column in your column model. It doesn't default to the last column, you will need to specify a valid id. We just eliminated column order dependencies and I don't want to introduce a new one.

Some limitations (aka features):

It only grows, and doesn't shrink. Shrinking could be put in, but it will result in more calculation (not code wise, performance wise). I wouldn't recommend it, but I could add it.

A column auto expand (or shrink) has the overhead of a double layout but is still 5-10x faster than an autoSizeColumns call.

Once the user has resized any column, auto expand is turned off. If not, all kinds of undesirable behavior happens (e.g. user resizes any column smaller and it auto pops back to where it was ).
Reply With Quote
  #9  
Old 03-04-2007, 04:59 AM
Default

Thank you Jack... You are always the best.
Reply With Quote
  #10  
Old 03-04-2007, 01:47 PM
Default

Quote:
Originally Posted by jacksloc
Ok, I added it.
Thank you, Jack!

Quote:
Originally Posted by jacksloc
autoExpandColumn config option, that will need to be the id of a column in your column model. It doesn't default to the last column, you will need to specify a valid id. We just eliminated column order dependencies and I don't want to introduce a new one.
Sounds reasonable!

Quote:
Originally Posted by jacksloc
Some limitations (aka features):

It only grows, and doesn't shrink. Shrinking could be put in, but it will result in more calculation (not code wise, performance wise). I wouldn't recommend it, but I could add it.

A column auto expand (or shrink) has the overhead of a double layout but is still 5-10x faster than an autoSizeColumns call.

Once the user has resized any column, auto expand is turned off. If not, all kinds of undesirable behavior happens (e.g. user resizes any column smaller and it auto pops back to where it was ).
Okay. I will try to see if we can use this... well... of course we can... it's just that I think of the last columns in my layout that is currently hidden... if the users unhide these then I will try to find a way to make the last newly unhidden column the auto-resize-to-the-rest column instead.
Reply With Quote
分享到:
评论

相关推荐

    auto-adjust-text

    auto-adjust-text

    详解使用 CSS 的 font-size-adjust 属性改善网页排版

    CSS 中的 font-size-adjust 属性允许开发者基于小写字母的高度指定 font-size ,这可以有效地提高网页文字的可读性。 在这篇文章中,你不仅能了解到font-size-adjust 属性的重要性,并且还能学会如何在你的项目中...

    2021年移动流媒体报告 -adjust.pdf

    2021年移动流媒体报告 -adjust.pdf

    前端开源库-adjust-md-for-publish

    6. **依赖处理**:检查并处理文档中的外部依赖,如CSS样式或JavaScript库,确保它们在发布后依然可用。 通过使用"adjust-md-for-publish",开发者无需手动处理这些细节,只需专注于编写高质量的代码和内容,工具会...

    2021年移动流媒体报告:如何应对用户行为巨变-Adjust.pdf

    从标题中带有“-Adjust”部分,我们可以推测Adjust是一个提供数据分析、用户行为追踪或应用优化等功能的平台。该平台可能为移动应用开发者提供数据支持,帮助他们了解用户行为,并据此调整市场策略。 由于没有实际...

    struts2-jasperreport-plugin-adjust2.1

    adjust2.1是adjust2.0的改良; adjust2.0解决了三个问题:1、普通报表HTML及Excel格式预览px图片无法显示;2、图形报表HTML格式预览无法显示;3、图形报表一次请求返回多张时存在报表覆盖异常现象; adjust2.1是针对...

    struts2-jasperreport-plugin-2.1.6-adjust1.0

    在官方struts2-jasperreport-plugin-2.1.6基础上,解决问题有二:一是普通报表HTML及Excel格式预览无法显示px图片,二是图形报表HTML格式无法展示;分享于有需要的朋友~~

    struts2-jasperreport-plugin-2.1.6-adjust2.0

    在原有官方struts2-jasperreport-plugin-2.1.6.jar的基础上解决了三个问题:一是普通报表HTML及Excel格式预览无法显示px图片;一是图形报表无法HTML格式预览;一是图形报表一次请求返回多张时存在报表覆盖异常现象;

    single-key-adjust-clock.rar_single

    显示数据在70H-75H单元内,用六位LED共阳数码管显示,P1口输出段码数据,P3口作 扫描控制,每个LED数码管亮1MS时间再逐位循环。 定时器T0、T1溢出周期为50MS,T0为秒计数用, T1为调整时闪烁用, ...

    2019移动购物应用报告-Adjust-Liftoff-201907.pdf

    本报告由Adjust和Liftoff联合发布,重点分析了2019年全球移动购物应用领域的用户获取趋势与基准。报告通过大量的数据收集与分析,提供了深入的洞察,帮助广告主和开发者更好地理解移动购物市场的现状,并据此制定...

    decimal-adjust.js:数字的十进制调整

    十进制调整.js 数字的十进制调整。安装npm install decimal-adjust应用程序接口decimalAdjust(type, value, exp)参数type ( String ) 调整的类型。 值 ( Number ) 数字。 exp ( Integer ) 指数(调整底数的 10 对数...

    2019移动购物应用报告-Adjust-Liftoff-201907.rar

    《2019移动购物应用报告》是由Adjust与Liftoff联合发布的,这份报告深入探讨了2019年全球移动购物应用的发展趋势、用户行为、市场状况以及营销策略等多个方面,为移动电商行业的从业者提供了宝贵的参考数据和洞察。...

    bool-adjust.rar_If..._LABVIEW多条件_switch labview

    标题 "bool-adjust.rar_If..._LABVIEW多条件_switch labview" 暗示了这个压缩包中的资源是关于在LabVIEW中实现类似C#语言中的条件判断结构,如if...else和switch语句的。LabVIEW(Laboratory Virtual Instrument ...

    2020年超级休闲游戏全方位指南-Adjust-202006.rar

    《2020年超级休闲游戏全方位指南》是由著名数据分析公司Adjust发布的专业报告,主要针对2020年超级休闲游戏市场的发展趋势、用户行为、最佳实践以及未来预测进行了全面剖析。这份报告对于游戏开发者、发行商以及相关...

    2020年超级休闲游戏全方位指南-Adjust-202006.zip

    《2020年超级休闲游戏全方位指南》是由著名数据分析公司Adjust发布的专业报告,旨在为游戏开发者、发行商以及行业从业者提供关于超级休闲游戏领域的深度洞察。这份指南详细阐述了2020年超级休闲游戏的市场趋势、用户...

    eeglab ADJUST

    **eeglab ADJUST 插件详解** 在神经科学领域,EEG(Electroencephalography,脑电图)是一种广泛使用的非侵入性技术,用于记录大脑的电活动。eeglab是一款开源的MATLAB工具箱,专门用于EEG数据的分析和可视化。而...

    2021年移动流媒体报告 -adjust.rar

    《2021年移动流媒体报告》是针对过去一年全球移动流媒体市场进行深入分析的研究报告,由专业数据分析公司adjust发布。这份报告涵盖了移动流媒体行业的多项关键指标,包括用户行为、市场规模、增长趋势、技术发展以及...

    2020年超级休闲游戏全方位指南-Adjust-202006精品报告2020.rar

    《2020年超级休闲游戏全方位指南》是由知名数据分析公司Adjust发布的年度精品报告,针对2020年的超级休闲游戏市场进行了深度分析和解读。这份报告为游戏开发者、发行商以及行业相关人员提供了宝贵的洞见,揭示了该...

    2020年超级休闲游戏全方位指南-Adjust-202006精品报告2020.pdf

    据Adjust数据显示,2020年3月的会话量增幅达到了惊人的72%。 在用户获取方面,超休闲游戏的平均单次安装成本(CPI)普遍下降。尽管美国地区的用户获取成本比其他地区要高,为0.42美元,但其用户点击转化率也是最高...

Global site tag (gtag.js) - Google Analytics