找回密码
 立即注册

QQ登录

只需一步,快速开始

wlp5402

银牌会员

51

主题

145

帖子

2828

积分

银牌会员

积分
2828

活字格认证

wlp5402
银牌会员   /  发表于:2011-12-7 18:02  /   查看:5050  /  回复:5
FarPoint.Web.Spread.Extender.AutoCompleteCellType ac = new FarPoint.Web.Spread.Extender.AutoCompleteCellType();
ac.BackgroundImageUrl = null;
ac.CompletionInterval = 1000;
ac.CompletionSetCount = 5;
ac.DelimiterCharacters = ";, :";
AjaxControlToolkit.TextBoxWatermarkExtender twe = new AjaxControlToolkit.TextBoxWatermarkExtender();
twe.WatermarkText = "Type a character";
ac.Extenders.Add(twe);
ac.ServicePath = "WebService.asmx";
ac.ServiceMethod = "GetAllNames";
ac.MinimumPrefixLength = 1;
ac.EnableCaching = true;
ac.ShowEditor = true;
FpSpread1.ActiveSheetView.Cells[0, 0].CellType = ac;


如何去掉会有问题,但我又不想用,只想用水印功能就可以了
ac.ServicePath = "WebService.asmx";
ac.ServiceMethod = "GetAllNames";

5 个回复

正序浏览
iceman
社区贡献组   /  发表于:2011-12-8 14:30:00
6#

回复 5# wlp5402 的帖子

你好,目前 TextBoxWatermarkCellType 不支持 Multiline 功能,给你带来不便,很抱歉。
回复 使用道具 举报
wlp5402
银牌会员   /  发表于:2011-12-8 13:53:00
5#

回复 4# iceman 的帖子

不过有个问题,如果我要Multiline的 textbox好像做不了?
回复 使用道具 举报
iceman
社区贡献组   /  发表于:2011-12-8 11:14:00
地板

回复 3# wlp5402 的帖子

That's all right.
回复 使用道具 举报
wlp5402
银牌会员   /  发表于:2011-12-8 09:48:00
板凳

回复 2# iceman 的帖子

thanks
回复 使用道具 举报
iceman
社区贡献组   /  发表于:2011-12-7 18:17:00
沙发

回复 1# wlp5402 的帖子

你好,可以使用 TextBoxWatermarkCellType  实现该功能:

  1.               FarPoint.Web.Spread.Extender.TextBoxWatermarkCellType tb = new FarPoint.Web.Spread.Extender.TextBoxWatermarkCellType();
  2.             tb.WatermarkText = "Required";
  3.             FpSpread1.ActiveSheetView.Cells[0, 1].CellType = tb;
复制代码
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部