[CLOSED] Mobile / Button problem

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    [CLOSED] Mobile / Button problem

    I am able to fill out the fields but can not click on buttons....

       <form id="form1" runat="server">
             <h1>
                        <b>..:::Maintelligent </b></h1>
                    <h2>Login</h2>
            <ext:ResourceManager ID="ResourceManager1" ScriptMode="Debug" runat="server" />
    
    
                    <ext:Window  ID="Window1"
                        runat="server"
                        Title="Login"
                        Width="400"
                        Frame="true"
                        BodyPadding="13"
                        DefaultAnchor="100%">
                        <Items>
    
                            <ext:NumberField MinValue="1000" MinLength="4" runat="server" ID="txtCompanyId" Text="1000" FieldLabel="Company Id" Width="250"
                                AllowBlank="false" BlankText="Company Id" EmptyText="1000 for USA">
                            </ext:NumberField>
                            <ext:TextField runat="server" ID="txtUserName" FieldLabel="User Name" Text="" Width="250"
                                AllowBlank="false" BlankText="User Name required!">
                            </ext:TextField>
                            <ext:TextField runat="server" InputType="Password" AllowBlank="false" ID="txtPassword" Text=""
                                FieldLabel="Password" Width="250">
                            </ext:TextField>
                        </Items>
                        <Buttons>
    
                            <ext:Button ID="btnLogin" Icon="Server" Text="Login" runat="server">
    
                                <DirectEvents>
                                    <Click OnEvent="loging">
                                        <EventMask ShowMask="true" Msg="Verifiying User...." MinDelay="500">
                                        </EventMask>
                                    </Click>
                                </DirectEvents>
                            </ext:Button>
                            <ext:Button ID="Button1" Text="Forgot Password ?" runat="server">
                                <DirectEvents>
    
                                    <Click OnEvent="FortogettenPassword">
    
                                        <EventMask ShowMask="true"></EventMask>
                                    </Click>
    
                                </DirectEvents>
                            </ext:Button>
                        </Buttons>
                    </ext:Window>
        </form>
    Last edited by geoffrey.mcgill; Feb 06, 2015 at 12:12 AM. Reason: [CLOSED]
  2. #2
    Is it a MVC or a WebForms project?
    Last edited by RCN; Jan 28, 2015 at 11:52 PM.
  3. #3
    In MVC it is working as expected.
    <!DOCTYPE html>
    <html>
    <head id="Head2" runat="server">
    </head>
    <body>
        <ext:ResourceManager runat="server" ScriptMode="Debug" />
        <h1>
            <b>..:::Maintelligent </b></h1>
        <h2>Login</h2>
    
        <ext:Window ID="Window1"
            runat="server"
            Title="Login"
            Width="400"
            Frame="true"
            BodyPadding="13"
            DefaultAnchor="100%">
            <Items>
                <ext:NumberField MinValue="1000" MinLength="4" runat="server" ID="txtCompanyId" Text="1000" FieldLabel="Company Id" Width="250"
                    AllowBlank="false" BlankText="Company Id" EmptyText="1000 for USA">
                </ext:NumberField>
                <ext:TextField runat="server" ID="txtUserName" FieldLabel="User Name" Text="" Width="250"
                    AllowBlank="false" BlankText="User Name required!">
                </ext:TextField>
                <ext:TextField runat="server" InputType="Password" AllowBlank="false" ID="txtPassword" Text=""
                    FieldLabel="Password" Width="250">
                </ext:TextField>
            </Items>
            <Buttons>
                <ext:Button ID="btnLogin" Icon="Server" Text="Login" runat="server">
                    <DirectEvents>
                        <Click Url="~/Example/loging">
                            <EventMask ShowMask="true" Msg="Verifiying User...." MinDelay="500">
                            </EventMask>
                        </Click>
                    </DirectEvents>
                </ext:Button>
                <ext:Button ID="Button1" Text="Forgot Password ?" runat="server">
                    <DirectEvents>
                        <Click Url="~/Example/FortogettenPassword">
                            <EventMask ShowMask="true"></EventMask>
                        </Click>
    
                    </DirectEvents>
                </ext:Button>
            </Buttons>
        </ext:Window>
    </body>
    </html>
    namespace RCNBS.Visions.SandBox.Controllers
    {
        public class ExampleController : System.Web.Mvc.Controller
        {
            public ActionResult Index()
            {
                return View();
            }
    
            public ActionResult loging()
            {
                System.Threading.Thread.Sleep(TimeSpan.FromSeconds(2));
    
                X.Msg.Notify("Direct Event", "loging").Show();
    
                return this.Direct();
            }
    
            public ActionResult FortogettenPassword()
            {
                System.Threading.Thread.Sleep(TimeSpan.FromSeconds(2));
    
                X.Msg.Notify("Direct Event", "FortogettenPassword").Show();
    
                return this.Direct();
            }
        }
    }
    Last edited by geoffrey.mcgill; Jan 30, 2015 at 9:03 PM.
  4. #4
    I suspect you are using MVC. The following example reproduces the issue presented by you

    <script runat="server">
        public void loging(object sender, DirectEventArgs e)
        {
            System.Threading.Thread.Sleep(TimeSpan.FromSeconds(2));
    
            X.Msg.Notify("Direct Event", "loging").Show();
        }
    
        public void FortogettenPassword(object sender, DirectEventArgs e)
        {
            System.Threading.Thread.Sleep(TimeSpan.FromSeconds(2));
    
            X.Msg.Notify("Direct Event", "FortogettenPassword").Show();
        }
    </script>
    <!DOCTYPE html>
    <html>
    <head id="Head2" runat="server">
    </head>
    <body>
        <ext:ResourceManager runat="server" ScriptMode="Debug" />
        <h1>
            <b>..:::Maintelligent </b></h1>
        <h2>Login</h2>
        <ext:Window ID="Window1"
            runat="server"
            Title="Login"
            Width="400"
            Frame="true"
            BodyPadding="13"
            DefaultAnchor="100%">
            <Items>
                <ext:NumberField MinValue="1000" MinLength="4" runat="server" ID="txtCompanyId" Text="1000" FieldLabel="Company Id" Width="250"
                    AllowBlank="false" BlankText="Company Id" EmptyText="1000 for USA">
                </ext:NumberField>
                <ext:TextField runat="server" ID="txtUserName" FieldLabel="User Name" Text="" Width="250"
                    AllowBlank="false" BlankText="User Name required!">
                </ext:TextField>
                <ext:TextField runat="server" InputType="Password" AllowBlank="false" ID="txtPassword" Text=""
                    FieldLabel="Password" Width="250">
                </ext:TextField>
            </Items>
            <Buttons>
                <ext:Button ID="btnLogin" Icon="Server" Text="Login" runat="server">
                    <DirectEvents>
                        <Click OnEvent="loging">
                            <EventMask ShowMask="true" Msg="Verifiying User...." MinDelay="500">
                            </EventMask>
                        </Click>
                    </DirectEvents>
                </ext:Button>
                <ext:Button ID="Button1" Text="Forgot Password ?" runat="server">
                    <DirectEvents>
                        <Click OnEvent="FortogettenPassword">
                            <EventMask ShowMask="true"></EventMask>
                        </Click>
                    </DirectEvents>
                </ext:Button>
            </Buttons>
        </ext:Window>
    </body>
    </html>
    Last edited by geoffrey.mcgill; Jan 30, 2015 at 9:04 PM.
  5. #5
    I am gonna check whether it's working in a WebForms project.
  6. #6
    Yes, it's working as expected in a WebForms project.

Similar Threads

  1. Mobile Compatibility
    By pessimca in forum 2.x Help
    Replies: 4
    Last Post: Feb 24, 2014, 12:53 PM
  2. Mobile development
    By cuki in forum 1.x Help
    Replies: 0
    Last Post: May 05, 2012, 6:06 PM
  3. [CLOSED] Mobile
    By rnfigueira in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: Mar 28, 2012, 3:14 PM
  4. [CLOSED] Mobile
    By rnfigueira in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Aug 04, 2011, 2:32 PM
  5. Coolite on Windows Mobile 6.x
    By macap in forum Open Discussions
    Replies: 1
    Last Post: Aug 04, 2009, 10:03 AM

Posting Permissions