|
Title: [solved] Datagrid updateRow not working Post by: Max Lamda 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. Title: Re: Datagrid updateRow not working Post by: Max Lamda on April 28, 2016, 09:14:39 AM Ok, I called refreshRow afterwards and then it is shown.
This behavior changed during the versions!! Title: Re: Datagrid updateRow not working Post by: Max Lamda 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? Title: Re: [solved] Datagrid updateRow not working Post by: jarry 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.
Title: Re: [solved] Datagrid updateRow not working Post by: Max Lamda 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. |