EasyUI Forum
May 15, 2024, 11:38:16 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: [SOLVED] Why getChanges (propertygrid) get all value except the first one?  (Read 3756 times)
Don_Juan
Newbie
*
Posts: 20


View Profile
« 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.
« Last Edit: October 20, 2017, 04:55:23 AM by Don_Juan » Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 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
Logged
Don_Juan
Newbie
*
Posts: 20


View Profile
« Reply #2 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
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!