Grid Feature Request - Ext JS

本文探讨了使用Ext1.0框架实现表格功能的方法,特别是如何将表格的第一列固定,而其余列可以滚动的问题。该需求适用于展示大量并行数据的情况,如客户名单与对应日期的标记。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Hi there

We have just start using Ext1.0 and not sure if the following feature is available. We like to make the first column on the grid locked while the rest is scrollable. For example we like to display a grid with 50 columns on a page say the first column has the client name and the second to 50th column contains dates in the form of weeks. eg



Client Name_|___1st Jan_|____7th Jan__|___ 14th Jan ...... 25th Dec
Micheal______|____X______|______________|_______
Neil__________|____________|___ X________|_________
Shirley_______|____________|_____________|____X__

Hence the grid will automatically present a horiz scroll bar to scroll the columns. In our scenario, the client name needs to stay so when we scroll to the right we can see which X's belong to which client.

Not sure if this is possible with the existing Ext 1.0 grid.
Reply With Quote
  #2  
Old 03-15-2007, 04:16 AM
Default

In your columnmodel:
(the locked-config is what to notice here)

{header: "ClientName", dataIndex: 'theName', locked: true}
Reply With Quote
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值