[CLOSED] Problem with menus under ipad

  1. #1

    [CLOSED] Problem with menus under ipad

    Coolite menu subitems doesn't work under ipad... I guess it's because the subitems are show in the mousehover event while regular menu items are shown on the click event. Is there any way to which i can override this behaviour and make subitems be shown in click event?
  2. #2
    Hi,

    Setting IgnoreParentClicks="true" on the Menu does appear to solve the problem.

    Here's a full sample demonstrating the scenario. This was only tested with Ext.NET v1.x. The property may not be available on pre-v1 builds.

    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>
    </head>
    <body>
    <form runat="server">
        <ext:ResourceManager runat="server" />
    
    
        <ext:Panel runat="server" Title="Example" Height="215" Width="350">
            <TopBar>
                <ext:Toolbar runat="server">
                    <Items>
                        <ext:Button runat="server" Text="Button">
                            <Menu>
                                <ext:Menu runat="server" IgnoreParentClicks="true">
                                    <Items>
                                        <ext:MenuItem runat="server" Text="Item 1" />
                                        <ext:MenuItem runat="server" Text="Item 2">
                                            <Menu>
                                                <ext:Menu runat="server">
                                                    <Items>
                                                        <ext:MenuItem runat="server" Text="Sub Item 1" />
                                                        <ext:MenuItem runat="server" Text="Sub Item 2" />
                                                        <ext:MenuItem runat="server" Text="Sub Item 3" />
                                                    </Items>
                                                </ext:Menu>
                                            </Menu>
                                        </ext:MenuItem>
                                        <ext:MenuItem runat="server" Text="Item 3" />
                                    </Items>
                                </ext:Menu>
                            </Menu>
                        </ext:Button>
                    </Items>
                </ext:Toolbar>
            </TopBar>
        </ext:Panel>
    </form>
    </body>
    </html>
    Hope this helps.
    Geoffrey McGill
    Founder

Similar Threads

  1. [CLOSED] Scrolling issue with Ipad
    By Pablo_Azevedo in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jul 20, 2012, 2:08 PM
  2. [CLOSED] Ipad 3 layout issues
    By rnachman in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Mar 21, 2012, 12:22 PM
  3. Grid Filer Plugin Problem with IPAD
    By Debajyoti2005in in forum 1.x Help
    Replies: 0
    Last Post: Dec 09, 2011, 5:07 AM
  4. AutoScroll on Safari Ipad
    By caha76 in forum 1.x Help
    Replies: 2
    Last Post: Aug 10, 2011, 5:51 PM
  5. Ipad
    By Pablo_Azevedo in forum Feature Requests
    Replies: 6
    Last Post: May 27, 2011, 2:05 PM

Posting Permissions