EasyUI Forum
November 05, 2025, 06:43:46 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
  Home Help Search Login Register  
  Show Posts
Pages: [1]
1  General Category / EasyUI for jQuery / Re: Inrow delete button on: November 08, 2016, 06:52:56 AM
This is what I am using for inline "CRUD":

 {
                        field: 'action', title: 'Action', width: 100, align: 'center',
                        formatter: function (value, row, index) {
                            if (row.editing) {
                                var s = '<a href="javascript:void(0)" onclick="saverow(this)">Save</a> ';
                                var c = '<a href="javascript:void(0)" onclick="cancelrow(this)">Cancel</a>';
                                return s + c;
                            } else {
                                var e = '<a href="javascript:void(0)" onclick="editrow(this)">Edit</a> ';
                                var d = '<a href="javascript:void(0)" onclick="deleterow(this)">Delete</a>';
                                return e + d;
                            }
                        }
                    },
2  General Category / EasyUI for jQuery / Change attributes for a specific column on a specific row on: November 08, 2016, 06:28:38 AM
Hi.

I need to change a specific column of a "Parent" grid if a value is changed in one of the "Child" grid's rows. Needless to say that this is for an editable grid and a gridview.

I am able to change a specif column of all rows of the relevant "Parent" grid.

This is my code:

   var thisGrid = $(this).datagrid('getSelfGrid'); // Get the grid that this row belongs to
   var dgParent = thisGrid.datagrid('getParentGrid'); // Get the parent grid of this grid
   var ndx = $(this).datagrid('getParentRowIndex'); // Get the index of the row of the parent grid that this row belongs to
   var parentRow = $('dgInv').datagrid('selectRow', ndx); // Get the actual row of the parent grid
   var parentColumn = parentRow.datagrid('getColumnOption', 'EditComment'); // Get the specific column
   parentColumn.editor = null; // Make it "not editable" ---- This should only affect the specific column and not all the columns in the grid

Any help will be greatly appreciated.
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!