Focusable LoadMask

  1. #1

    Focusable LoadMask

    On the following example, focus grid's view during its load. The Load Mask is focusable, so it shows a border.
    Click image for larger version. 

Name:	lmk001.png 
Views:	5 
Size:	2.4 KB 
ID:	24598

    <!DOCTYPE html>
    <html>
    <head id="Head1" runat="server">
    </head>
    <body>
        <ext:ResourceManager ScriptMode="Debug" Theme="Crisp" runat="server" />
        <ext:GridPanel ID="_grd" Border="true" Title="Ext.NET" Width="500" Height="500" runat="server">
            <Store>
                <ext:Store AutoLoad="true" runat="server">
                    <Proxy>
                        <ext:AjaxProxy Url="~/Example/LoadFakeRecords/" StartParam="start" LimitParam="limit" PageParam="page">
                            <ActionMethods Read="POST" />
                            <Reader>
                                <ext:JsonReader RootProperty="data" />
                            </Reader>
                        </ext:AjaxProxy>
                    </Proxy>
                    <Model>
                        <ext:Model IDProperty="ID" runat="server">
                            <Fields>
                                <ext:ModelField Name="ID" />
                                <ext:ModelField Name="Name" />
                            </Fields>
                        </ext:Model>
                    </Model>
                </ext:Store>
            </Store>
            <ColumnModel runat="server">
                <Columns>
                    <ext:Column Text="ID" DataIndex="ID" runat="server" />
                    <ext:Column Text="Name" DataIndex="Name" runat="server" />
                </Columns>
            </ColumnModel>
        </ext:GridPanel>
    </body>
    </html>
    namespace SandBox.Controllers
    {
        public class ExampleController : System.Web.Mvc.Controller
        {
            public ActionResult Index() => View();
    
            public StoreResult LoadFakeRecords(int start, int limit, int page)
            {
                Thread.Sleep(TimeSpan.FromSeconds(100));
    
                List<Person> lst = new List<Person>();
    
                for (int index = start; index < (page * limit); index++)
                {
                    lst.Add(new Person
                    {
                        ID = index,
                        Name = $"Name - {index}"
                    });
                }
                return new StoreResult(lst, (page * limit) + limit);
            }
        }
    
        public class Person
        {
            public int ID { get; set; }
    
            public string Name { get; set; }
        }
    }
    On the following example, grid's view is masked manually, and that mask is not focusable.
    Click image for larger version. 

Name:	lmk002.png 
Views:	1 
Size:	2.3 KB 
ID:	24599
    <!DOCTYPE html>
    <html>
    <head id="Head1" runat="server">
    </head>
    <body>
        <ext:ResourceManager ScriptMode="Debug" Theme="Crisp" runat="server">
            <Listeners>
                <DocumentReady Handler="Ext.net.Mask.show(App._grd.view);" />
            </Listeners>
        </ext:ResourceManager>
        <ext:GridPanel ID="_grd" Border="true" Title="Ext.NET" Width="500" Height="500" runat="server">
            <Store>
                <ext:Store AutoLoad="false" runat="server">
                    <Proxy>
                        <ext:AjaxProxy Url="~/Example/LoadFakeRecords/" StartParam="start" LimitParam="limit" PageParam="page">
                            <ActionMethods Read="POST" />
                            <Reader>
                                <ext:JsonReader RootProperty="data" />
                            </Reader>
                        </ext:AjaxProxy>
                    </Proxy>
                    <Model>
                        <ext:Model IDProperty="ID" runat="server">
                            <Fields>
                                <ext:ModelField Name="ID" />
                                <ext:ModelField Name="Name" />
                            </Fields>
                        </ext:Model>
                    </Model>
                </ext:Store>
            </Store>
            <ColumnModel runat="server">
                <Columns>
                    <ext:Column Text="ID" DataIndex="ID" runat="server" />
                    <ext:Column Text="Name" DataIndex="Name" runat="server" />
                </Columns>
            </ColumnModel>
        </ext:GridPanel>
    </body>
    </html>
    Is that the expected behaviour, the Load Mask be focusable? In my opinion, no mask should be focusable.

    Thanks in advance
    Last edited by RaphaelSaldanha; May 05, 2016 at 1:11 PM.
  2. #2
    It's possible to overcome the issue by applying the following style:
    <style type="text/css">
        .x-focus.x-mask {
            border-color: transparent !important;
        }
    </style>

Similar Threads

  1. LoadMask
    By DanielU in forum 1.x Help
    Replies: 1
    Last Post: Aug 28, 2013, 6:02 PM
  2. [CLOSED] LoadMask
    By FpNetWorth in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: Dec 27, 2012, 1:41 PM
  3. LoadMask
    By Krisller in forum 1.x Help
    Replies: 0
    Last Post: Jun 10, 2010, 7:35 PM
  4. help with LoadMask
    By idrissb in forum 1.x Help
    Replies: 0
    Last Post: Sep 16, 2008, 3:48 AM
  5. [CLOSED] How do you use a LoadMask?
    By Timothy in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jul 09, 2008, 3:52 PM

Posting Permissions