EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: Don_Juan on September 29, 2017, 03:33:35 AM



Title: [SOLVED] Why getChanges (propertygrid) get all value except the first one?
Post by: Don_Juan 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.


Title: Re: Why getChanges (propertygrid) get all value except the first one?
Post by: stworthy on September 30, 2017, 12:45:35 AM
Please download the patch from http://www.jeasyui.com/download/downloads/jquery-easyui-1.5.3-patch.zip


Title: Re: Why getChanges (propertygrid) get all value except the first one?
Post by: Don_Juan 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