Welcome Guest Search | Active Topics | Sign In | Register

Dialog and TextArea Options
Samuele
Posted: Tuesday, January 20, 2009 12:58:17 PM
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
eo_support
Posted: Tuesday, January 20, 2009 1:14:28 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,089
Hi,

I believe you need to return 0 instead of false from ClientSideOnAccept for that case.

Thanks!
Samuele
Posted: Wednesday, January 21, 2009 3:25:11 PM
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
eo_support
Posted: Thursday, January 22, 2009 5:52:59 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,089
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


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.