EasyUI Forum
May 04, 2024, 06:25:36 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] Datagrid updateRow not working  (Read 10055 times)
Max Lamda
Newbie
*
Posts: 48


View Profile
« on: April 28, 2016, 09:07:46 AM »

I changed from version  1.4.3 to version 1.4.5 and the datagrid updateRow-method does not work anymore.

It does not throw an error but it just does not change the datagrid anymore.
« Last Edit: April 29, 2016, 04:36:11 AM by Max Lamda » Logged
Max Lamda
Newbie
*
Posts: 48


View Profile
« Reply #1 on: April 28, 2016, 09:14:39 AM »

Ok, I called refreshRow afterwards and then it is shown.

This behavior changed during the versions!!
Logged
Max Lamda
Newbie
*
Posts: 48


View Profile
« Reply #2 on: April 29, 2016, 03:14:11 AM »

I now did the following fix:

(function($){
   var updateRow = $.fn.datagrid.methods.updateRow;
   $.fn.datagrid.methods.updateRow = function(jq, options){
      updateRow(jq, options);
      $(jq).datagrid('refreshRow', options.index);
   }
})(jQuery);

so it works throughout the whole application without changing every single piece.

Is that ok?
Logged
jarry
Administrator
Hero Member
*****
Posts: 2262


View Profile Email
« Reply #3 on: April 29, 2016, 05:45:43 AM »

Please look at this example http://code.reloado.com/inebid3/edit#preview. The 'updateRow' method works fine.
Logged
Max Lamda
Newbie
*
Posts: 48


View Profile
« Reply #4 on: May 01, 2016, 05:37:11 AM »

I used in in an ajax callback and it does NOT work until I send refreshRow.

If I use 1.4.3 it works. If I use the patch it works with 1.4.5


But not 1.4.5 without patch.
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!