如何阻止devexpress文本框宽度的变化
我有在 asp.net 和 中运行的 Web 表单; c#.net,
该表单有一个 devexpress aspxtextbox 和另一个带有按钮的普通文本框。
场景是在普通文本框中输入比文本框宽度长的文本。
单击按钮后,它会将文本输入到 devexpress aspxtextbox 中,尽管给定的宽度为 50 px,但仍增加了 devexpress aspx 文本框的宽度。
如何保持devexpress aspx文本框的固定宽度
i have web form running in asp.net & c#.net,
The form has a devexpress aspxtextbox and the another ordinary textbox with a button.
The scenario is enter a text longer than the width of the text box in the ordinary text box.
on clicking the button it enters the text in to devexpress aspxtextbox ,increasing the width of the devexpress aspx text box inspite of width given as 50 px.
how to maintain the fixed width for devexpress aspx text box
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
添加属性native =“true”解决了这个问题。
e adding the property native ="true" solved out the issue.
不幸的是,Dev Express 在 IE7 文档标准模式下遇到了这个问题,通常你从他们那里得到的答复是“该控件是这样设计的”。这对 IE7 没有帮助。该问题不仅出现在 ASPxTextBox 中,而且也出现在其他应用程序中,例如 ASPxComboBox。
虽然使控件本机可以工作,但您会丢失各种样式等。
这是使控件保持非本机的另一种方法:
javascript:
devex control:
Unfortunately, Dev Express has this problem in IE7 Document Standards Mode, and usually the reply you'll get from them is something like "The control is designed this way." This doesn't help us in IE7. The problem isn't only with ASPxTextBox, but also happens with others, such as ASPxComboBox.
While making the control native will work, you lose various styling, etc.
Here is another way that keeps the control non-native:
javascript:
devex control: