开发者

Can you disable multiline on Telerik RadEditor?

开发者 https://www.devze.com 2022-12-27 11:40 出处:网络
Is it possible to make a Telerik RadEditor single-line entry only? For example, in an ASP Text开发者_如何转开发Box there is the Multiline attribute

Is it possible to make a Telerik RadEditor single-line entry only?

For example, in an ASP Text开发者_如何转开发Box there is the Multiline attribute

<asp:TextBox ID="TextBox1" runat="server" TextMode="MultiLine" />


Ah, just figured it out...

It's a bit weird, but there is an attribute for NewLineBr in the RadEditor.

<telerik:RadEditor NewLineBr="false">


Single line editing not possible with the RadEditor. It always uses an iframe element for the content area where the asp:textbox uses a textarea/input. Even if you make the height of the iframe be a single line, when the user presses Enter, they will get a new line. If you need a single line input from Telerik, then you can try using the RadInput control.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号