0

Listmodel/rowrender

asked 2007-07-18 10:19:41 +0800

wsm gravatar image wsm
69 2
首先 这段时间我提了不少问题 :) 感谢大家的积极回答

另外, 我的问题是 我们可以用listmodel/rowrender实现live data,
然后如果我的grid的第一个row已经被占用, 那么我要怎么改变
使得listmodel里面的第一个数据被放在grid的第二行....?
delete flag offensive retag edit

7 Replies

Sort by » oldest newest

answered 2007-07-18 11:28:42 +0800

robbiecheng gravatar image robbiecheng
1144 2
http://robbiecheng.sys-co...
如果先将model加载之后,再使用insertBefore() method来插入你要的数据呢?
link publish delete flag offensive edit

answered 2007-07-18 22:37:02 +0800

atticcat gravatar image atticcat
192
我的作法是在listmodel裏的第一筆加假資料...

/Dennis
link publish delete flag offensive edit

answered 2007-07-19 04:19:44 +0800

wsm gravatar image wsm
69 2
谢谢

不过要是在paging模式下 每次我都得加一次
另外如果listmodel里面的数据发生变化的时候, 自动更新grid的时候会有问题
所以我想知道 有没有办法 改变rowrender的参数, 也就是说传入的row参数从第二行开始
link publish delete flag offensive edit

answered 2007-07-19 09:11:35 +0800

atticcat gravatar image atticcat
192
你這個需求應該是要加column in grid or listheader in listbox 吧??
建議你把develop guide這本書重頭看一次,
會讓你少犯很多錯,及少作很多苦工的~~

/Dennis
link publish delete flag offensive edit

answered 2007-07-19 10:37:29 +0800

wsm gravatar image wsm
69 2
使我没有说清楚

其实不是column的问题比如
grid每一page的第一行我都在相应的column 放上一个textbox 用来做过滤
link publish delete flag offensive edit

answered 2007-07-19 12:07:58 +0800

henrichen gravatar image henrichen
3869 2
ZK Team
試試listmodel 第一筆放假數據,rowrender 則特殊處理假數據(放你的textbox).

/henri
link publish delete flag offensive edit

answered 2007-07-20 14:27:45 +0800

wsm gravatar image wsm
69 2
不过如果换页了不是又不行吗
link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2007-07-18 10:19:41 +0800

Seen: 589 times

Last updated: Jul 20 '07

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More