EasyUI Forum
April 29, 2024, 09:30:53 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
  Home Help Search Login Register  
  Show Posts
Pages: 1 [2]
16  General Category / EasyUI for jQuery / Introduce Loading Message into propertygrid? 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
17  General Category / EasyUI for jQuery / Re: Why getChanges (propertygrid) get all value except the first one? on: October 02, 2017, 01:33:11 AM
Thanks.
Where do I have to import this patch? do I have to rename the file in some way, or just import it so? Which folder should I place? Thank you
18  General Category / EasyUI for jQuery / [SOLVED] Why getChanges (propertygrid) get all value except the first one? on: September 29, 2017, 03:33:35 AM
Hello,
I'm trying to use getChanges as a propertygrid method.
Making the changes and the result of getChanges are all rows, except the first one. Why does this happen? If I double-click on the first cell, it returns the correct value, while with getChanges the first line is ignored.
I have 20 rows into propertygrid
Here is my code:

Code:
$('#details').propertygrid('appendRow', {
    name: "Name 1",
    value: result.name1,
    group: "Details"
});
$('#details').propertygrid('appendRow', {
    name: "Name 2",
    value: result.name2,
    group: "Details"
});
$('#details').propertygrid('appendRow', {
    name:   "Name 3",
    value:  result.name3,
    group:  "Details",
    editor: 'text'
});
$('#details').propertygrid('appendRow', {
    name: "Name 4",
    value: result.name4,
    group: "Details"
}); ......
$('#saveModify').linkbutton({
    iconCls: 'icon-save',
    disabled: false,
    onClick: function () {
        var rows = $('#details').propertygrid('getChanges');
        alert(rows);
    }
});  
Thanks soo much.
19  General Category / EasyUI for jQuery / Re: How to detect the type of easyui object, from its id id? on: July 10, 2017, 12:41:49 AM
Thank you so much for answering my question.

Var plugins, is an array that contains all type objects; With loop for, check if my target matches one of those in the array plugins.
It is not very clear though what makes $ (target) .data (plugins ).

I insert a control into loop for:

Code:
	for(var i=plugins.length-1; i>=0; i--){
            var ctrl = $(target).data(plugins[i]);
            console.log(i + " TARGET " + target + " is PLUGIN " + plugins[i] + "? " + ctrl);
            if (ctrl){
                return plugins[i];
            }
}

The answer to each call is indefinite, except in the right case, which returns [object, Object]

Thanks
20  General Category / EasyUI for jQuery / How to detect the type of easyui object, from its id id? on: July 07, 2017, 07:24:41 AM
Hello to all,
I have a curiosity to which I did not find an answer. Huh
Can I detect the type of an object from its name?

Example:

I have an element called myElement.
Object type combobox.
$ ('# myElement') combobox ();

Now, if I have the name (myElement), How do you find that the easyui object type is a combobox?
I hope I have described my curiosity well.
Thank you all  Grin
Pages: 1 [2]
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!