[CLOSED] [#449] Loading Mask

  1. #1

    [CLOSED] [#449] Loading Mask

    Hi Team,
    I want to display the loading mask without any Loading msg, I just want to show a spinner.
    Can you plaese help on this..
    Last edited by Daniil; Mar 19, 2014 at 6:51 AM. Reason: [CLOSED] [#449]
  2. #2
    Hello,

    I think we need to do a little work on the api. The simplest work-around I was able to find was setting Msg=" ".

    Example

    <EventMask ShowMask="true" Msg="&nbsp;" />
    We will discuss making some changes. Setting just Msg="" will work after we revise.

    Currently you can set Msg=" ", but the height of the mask element is not maintained. We will fix.
    Geoffrey McGill
    Founder
  3. #3
    Thank you.
    Its working. But how to change that spinning image i wanted to use tha attaced imageName:  13.gif
Views: 55
Size:  3.6 KB
  4. #4
    Here you are.
    <style type="text/css">
        .my-mask div {
            background-image: url(resources/images/test.png);
        }
    </style>
    <EventMask ShowMask="true" MsgCls="x-mask-loading my-mask" />
  5. #5
    Hi Daniil,

    We are using js method called ShowMask which is used through out our application to show the mask.
    current implementation is like this
    ShowMask: function (message) {
    
            var mask = new Ext.LoadMask(Ext.GLOBAL_STORE.IndexPageViewPort.el, { msg: '&nbsp;', el: Ext.GLOBAL_STORE.IndexPageViewPort.el });
            mask.show();
        }
    I wanted a one place change which reflects through out the app.

    Can you please share a detailed example with explanation it will be very helpful
  6. #6
    You can try to override the default CSS rule.
    <style type="text/css">
        .x-mask-loading div {
            background-image: url(my-mask-image.gif);
        }
    </style>
  7. #7
    Quote Originally Posted by Daniil View Post
    You can try to override the default CSS rule.
    <style type="text/css">
        .x-mask-loading div {
            background-image: url(my-mask-image.gif);
        }
    </style>
    Hi Daniil its coming like this Click image for larger version. 

Name:	Untitled.png 
Views:	26 
Size:	1.1 KB 
ID:	7981
    I dont want border. it should come like this Name:  13.gif
Views: 51
Size:  3.6 KB
  8. #8
    Then you should override another CSS rules.
    .x-mask-loading {
        border-width: 0px;
        padding: 0px;
        background: transparent;
    }
    
    .x-mask-loading div {
        background-color: transparent;
        background-image: url(resources/images/test.png); 
        border-width: 0px;   
        height: 32px;
        width: 32px;    
    }
    This might help to work on such issues.
    CSS Change TabPanel Header Color - Ext.NET on Vimeo
  9. #9
    Quote Originally Posted by Daniil View Post
    Then you should override another CSS rules.
    .x-mask-loading {
        border-width: 0px;
        padding: 0px;
        background: transparent;
    }
    
    .x-mask-loading div {
        background-color: transparent;
        background-image: url(resources/images/test.png); 
        border-width: 0px;   
        height: 32px;
        width: 32px;    
    }
    This might help to work on such issues.
    CSS Change TabPanel Header Color - Ext.NET on Vimeo
    Thank you very much Daniil, its working as expected :)
  10. #10
    Quote Originally Posted by geoffrey.mcgill View Post
    We will discuss making some changes. Setting just Msg="" will work after we revise.
    After the revision #5722, a mask with Msg="" should be rendered good. The change will go to the v2.5.1 release.

    As for Ext.NET v1, we are not going to change it there.

Similar Threads

  1. [CLOSED] [1.0] Loading mask does not
    By Jurke in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Aug 11, 2010, 3:30 PM
  2. [CLOSED] [1.0] Loading Mask
    By Timothy in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Apr 15, 2010, 3:35 PM
  3. How to position the loading mask
    By borgx in forum 1.x Help
    Replies: 0
    Last Post: Feb 25, 2010, 3:38 AM
  4. [CLOSED] Loading Mask
    By speedstepmem4 in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Apr 28, 2009, 12:44 PM
  5. Loading Mask
    By speedstepmem3 in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Nov 25, 2008, 6:55 AM

Posting Permissions