EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
June 26, 2024, 02:35:41 PM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
EasyUI Forum
>
General Category
>
Bug Report
>
[solved] Datagrid updateRow not working
Pages: [
1
]
« previous
next »
Print
Author
Topic: [solved] Datagrid updateRow not working (Read 10627 times)
Max Lamda
Newbie
Posts: 48
[solved] Datagrid updateRow not working
«
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
Re: Datagrid updateRow not working
«
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
Re: Datagrid updateRow not working
«
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: 2267
Re: [solved] Datagrid updateRow not working
«
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
Re: [solved] Datagrid updateRow not working
«
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
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> News
=> General Discussion
=> EasyUI for jQuery
=> EasyUI for Angular
=> EasyUI for Vue
=> EasyUI for React
=> Bug Report
Loading...