EasyUI Forum
March 29, 2024, 08:49:29 AM *
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] Datagrid, Merged Cells and Edit  (Read 10023 times)
paulg
Newbie
*
Posts: 7


View Profile
« on: August 29, 2016, 01:22:11 AM »

Hallo everybody,

I'm using Easyui 1.4.5 for a datagrid, some columns are editable and some not. Some of the non editable contains merged cells. After the editing of a row, some event refreshes and "unmerge" all the current row.

There is something I can do to avoid that ?

Thanks in advance.
« Last Edit: November 24, 2016, 03:40:13 AM by paulg » Logged
jarry
Administrator
Hero Member
*****
Posts: 2260


View Profile Email
« Reply #1 on: August 29, 2016, 05:59:07 AM »

After editing a row, you should call mergeCells method again to merge cells.
Logged
paulg
Newbie
*
Posts: 7


View Profile
« Reply #2 on: August 29, 2016, 06:13:33 AM »

Yes, but i have over 2000 rows and several columns to merge ... it takes a lot o time to redo the entire process.
Logged
jarry
Administrator
Hero Member
*****
Posts: 2260


View Profile Email
« Reply #3 on: August 29, 2016, 06:04:08 PM »

You don't need to merge all the cells, just merge that special row after editing it.
Logged
paulg
Newbie
*
Posts: 7


View Profile
« Reply #4 on: November 22, 2016, 02:21:02 PM »

Thanks, I tried to do that using an onEndEdit event, but I've noticed that a refreshRows is called after vanishing the merging again.
Logged
jarry
Administrator
Hero Member
*****
Posts: 2260


View Profile Email
« Reply #5 on: November 23, 2016, 12:24:19 AM »

Please try to use the 'onAfterEdit' or 'onCancelEdit' events instead.
Logged
paulg
Newbie
*
Posts: 7


View Profile
« Reply #6 on: November 24, 2016, 03:25:23 AM »

Thanks, worked like a charm !
« Last Edit: November 24, 2016, 03:39:40 AM by paulg » 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!