[CLOSED] Load Mask Caption using GridPanel

  1. #1

    [CLOSED] Load Mask Caption using GridPanel

    Hi,

    we are using to bind the data for handler concept, it is working fine.
    I have a issue for loading caption. I did loading caption at code behind like this

    gridPanel.LoadMask.ShowMask = true;
    gridPanel.LoadMask.Msg = "Loading";
    This loading text is not showing. If the user browser language is german then it showing caption for german language like this,
    Click image for larger version. 

Name:	loadingmask.jpg 
Views:	191 
Size:	5.2 KB 
ID:	2364

    I want to showing loading mask caption which we specified.
    How to solve this issue?

    Thanks and Regards

    Rameshkumar
    Last edited by Daniil; Mar 01, 2011 at 7:46 AM. Reason: [CLOSED]
  2. #2
    Hi,

    How we can reproduce the issue?

    I try the sample below and there is "Loading" without depending on the locale.

    Could you provide more details or a full sample to reproduce?

    Example
    <%@ Page Language="C#" %>
    
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    <%@ Import Namespace="System.Collections.Generic" %>
    
    <script runat="server">
        public List<object> MyData = new List<object> 
        { 
            new { test = "test1" },
            new { test = "test2" },
            new { test = "test3" },
            new { test = "test4" },
            new { test = "test5" },
            new { test = "test6" },
            new { test = "test7" },
            new { test = "test8" },
            new { test = "test9" }
        };
    
        protected void Page_Load(object sender, EventArgs e)
        {
            this.GridPanel1.LoadMask.ShowMask = true;
            this.GridPanel1.LoadMask.Msg = "Loading";
        }
            
        protected void Store_RefreshData(object sender, StoreRefreshDataEventArgs e)
        {
            System.Threading.Thread.Sleep(2000);
            List<object> data = this.MyData;
            var limit = e.Limit;
            if ((e.Start + e.Limit) > data.Count)
            {
                limit = data.Count - e.Start;
            }
            List<object> rangeData = (e.Start < 0 || limit < 0) ? data : data.GetRange(e.Start, limit);
            e.Total = data.Count;
            this.GridPanel1.GetStore().DataSource = rangeData;
        }
    </script>
    
    <!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" Locale="de" />
        <ext:GridPanel ID="GridPanel1" runat="server" AutoHeight="true">
            <Store>
                <ext:Store runat="server" OnRefreshData="Store_RefreshData">
                    <Proxy>
                        <ext:PageProxy />
                    </Proxy>
                    <Reader>
                        <ext:JsonReader>
                            <Fields>
                                <ext:RecordField Name="test" />
                            </Fields>
                        </ext:JsonReader>
                    </Reader>
                    <BaseParams>
                        <ext:Parameter Name="start" Value="0" Mode="Raw" />
                        <ext:Parameter Name="limit" Value="3" Mode="Raw" />
                    </BaseParams>
                </ext:Store>
            </Store>
            <ColumnModel runat="server">
                <Columns>
                    <ext:Column Header="Test" DataIndex="test" />
                </Columns>
            </ColumnModel>
            <BottomBar>
                <ext:PagingToolbar runat="server" PageSize="3" />
            </BottomBar>
        </ext:GridPanel>
        </form>
    </body>
    </html>
  3. #3
    Well, I guess there is
    this.GridPanel1.LoadMask.Msg = "Loading...";
    and not
    this.GridPanel1.LoadMask.Msg = "Loading";
    So, it's a default value and not rendered.

    To avoid please use
    this.GridPanel1.LoadMask.Msg = "Loading ..."; //a space character between 'Loading' and '...'
    or
    this.GridPanel1.LoadMask.Msg = "Loading&#46;&#46;&#46;"; //&#46 is an encoded dot character
    Last edited by Daniil; Feb 28, 2011 at 11:42 AM.
  4. #4

    Load Mask Caption using GridPanel

    Hi Danil,

    Thank you your reply.

    Here the example source we are using to bind the data using handler concept. I tested this source separate project which is working fine. Based on attached source processes we are using to bind the data from database.

    In our application, when i click refresh button at paging toolbar the grid will be reloading the data. At the time loading caption are showing based on browser culture.


    Quote Originally Posted by Daniil View Post
    Hi,

    How we can reproduce the issue?

    I try the sample below and there is "Loading" without depending on the locale.

    Could you provide more details or a full sample to reproduce?
    Attached Files
  5. #5
    Please clarify did you see my second post?
  6. #6
    Quote Originally Posted by Daniil View Post
    Please clarify did you see my second post?
    Never mind. I see
    gridPanel.LoadMask.Msg = "Loading Text";
    in the test project.

    I have tested this code and it appears to be working fine on my side - I see "Loading Text" in the mask without depending on the locale.

    Please clarify what exactly toolkit's version do you use?
  7. #7

    Load Mask Caption using GridPanel

    Hi Daniil,

    We are using V0.8.
    Now it is working when i given "Loading ..." [with a space between dot and loading text].

    But &#46; it is not working.

    Quote Originally Posted by Daniil View Post
    Never mind. I see
    gridPanel.LoadMask.Msg = "Loading Text";
    in the test project.

    I have tested this code and it appears to be working fine on my side - I see "Loading Text" in the mask without depending on the locale.

    Please clarify what exactly toolkit's version do you use?

Similar Threads

  1. [CLOSED] Load mask on a collapsible window
    By speedstepmem3 in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Jan 12, 2012, 11:24 AM
  2. Load mask from code behind
    By maephisto in forum 1.x Help
    Replies: 11
    Last Post: Apr 13, 2011, 2:33 PM
  3. Load Mask via JS?
    By Tbaseflug in forum 1.x Help
    Replies: 6
    Last Post: Feb 16, 2010, 12:34 PM
  4. load mask for body
    By [WP]joju in forum 1.x Help
    Replies: 7
    Last Post: Mar 16, 2009, 4:29 AM
  5. [CLOSED] GridPanel load mask
    By peterdiplaros in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Nov 14, 2008, 3:17 PM

Tags for this Thread

Posting Permissions