开发者

Can you disable multiline on Telerik RadEditor?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜