[CLOSED] Validation one control

Page 6 of 6 FirstFirst ... 456
  1. #51
    I can suggest something like this:

    Example
    <%@ Page Language="C#" %>
    
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title>Ext.Net Example</title>
    
        <script type="text/javascript">
            var isContent = function (c) {
                return c.items && c.items.getCount() === 0;    
            }
        </script>
    </head>
    <body>
        <form runat="server">
            <ext:ResourceManager runat="server" />
            <ext:Panel ID="Panel1" runat="server" Title="Items">
                <Items>
                    <ext:TextField runat="server" Text="I'm form Items" />
                </Items>
            </ext:Panel>
            <ext:Panel ID="Panel2" runat="server" Title="Content">
                <Content>
                    <ext:TextField runat="server" Text="I'm form Content" />
                </Content>
            </ext:Panel>
            <ext:Button runat="server" Text="isContent(Panel1))">
                <Listeners>
                    <Click Handler="alert(isContent(Panel1))" />
                </Listeners>
            </ext:Button>
            <ext:Button runat="server" Text="isContent(Panel2))">
                <Listeners>
                    <Click Handler="alert(isContent(Panel2))" />
                </Listeners>
            </ext:Button>
        </form>
    </body>
    </html>
    Why did you place your server controls into Content? For example, <Sispro:SUtNumber>?

    As far as I can understand SUtNumber is a sub-class of NumberField, isn't that so? If so, you can use Items.
  2. #52
    more or less. I is not a sub-class. I have a composite server control of type Control. This component encapsulates a CompositeField Ext containing a TextField's also Ext. For this reason I can not use items
Page 6 of 6 FirstFirst ... 456

Similar Threads

  1. Set control validation after checkbox is checked
    By HexElffilter in forum 1.x Help
    Replies: 1
    Last Post: Feb 16, 2012, 2:21 PM
  2. Asp.Net Validation Control with Ext.Net Controls
    By huzzy143 in forum 1.x Help
    Replies: 2
    Last Post: Sep 08, 2011, 8:32 PM
  3. Replies: 3
    Last Post: Jul 11, 2011, 9:43 AM
  4. How to use Validation Control in Coolite V0.8
    By rbalajiprasad in forum 1.x Help
    Replies: 1
    Last Post: Aug 24, 2010, 5:17 PM
  5. [CLOSED] Form Validation within template of a asp:login control
    By ljcorreia in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Nov 27, 2009, 12:15 PM

Posting Permissions