|
Rank: Advanced Member Groups: Member
Joined: 5/31/2007 Posts: 58
|
Hi,
how a can use textarea in dialog is i can't press enter key? I've try to use ClientSideOnAccept to prevent close but the text in textarea don't go head.
Thank Paroca
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
I believe you need to return 0 instead of false from ClientSideOnAccept for that case.
Thanks!
|
|
Rank: Advanced Member Groups: Member
Joined: 5/31/2007 Posts: 58
|
I've use "if (arg.keyCode == 13) return 0;" in ClientSideOnAccept and dialog stop to close but cursor in the textarea don't go to new line
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi, Check the version you are running. This is a new feature that has been added very recently. We tested the following code with the latest version and it works fine:
Code: HTML/ASPX
<form id="form1" runat="server">
<script type="text/javascript">
function test(dialog, arg)
{
if (arg.keyCode == 13)
return 0;
return false;
}
</script>
<div>
<eo:Dialog runat="server" ID="Dialog1"
BackColor="Gray"
ControlSkinID="None"
HeaderHtml="Dialog Title"
Height="100px"
Width="168px"
ClientSideOnAccept="test"
InitialState="Visible">
<ContentTemplate>
<asp:TextBox runat="server" ID="TextBox1"
Height="83px" TextMode="MultiLine"
Width="216px"></asp:TextBox>
</ContentTemplate>
</eo:Dialog>
</div>
</form>
Hope this helps. Thanks
|
|