EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: Don_Juan on October 11, 2017, 02:15:37 AM



Title: Introduce Loading Message into propertygrid?
Post by: Don_Juan on October 11, 2017, 02:15:37 AM
Hi,
i try to insert into a propertygrid a message of loading. It's possible?
I try to insert this method, but the message don't appear.

Code:
$('#modify').linkbutton({
    iconCls: 'icon-save',
    disabled: false,
    plain: false,
    onClick: function () {
        $.messager.confirm("Are you sure?",'Are you sure?',function(r){
            if (r){
                $('#details').propertygrid('loading');
                ....
                $('#details').propertygrid('loaded');
            }
        });
    }
});        
Thanks


Title: Re: Introduce Loading Message into propertygrid?
Post by: jarry on October 11, 2017, 06:37:38 AM
You display the loading message and hide it immediately. So you can't see the message.


Title: Re: Introduce Loading Message into propertygrid?
Post by: Don_Juan on October 12, 2017, 12:23:15 AM
I try to delete the method Loaded, but the message don't appear. Without, the load message should always be exposed, but that is not the case.
When I use this to load the main table, even though the time is short, it still appears to disappear.
Can the point of code where I have entered this method can be wrong?
Thanks