EasyUI Forum
December 14, 2024, 03:17:59 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: Edatagrid Extension onDestroy causes undefined row.  (Read 5309 times)
Alfred
Full Member
***
Posts: 134


-Licensed User-


View Profile
« on: November 29, 2017, 09:55:48 PM »

I want to reload the edatagrid inside a subgrid on destroying the row.

Code:
onDestroy:function(index,row){
               $(this).edatagrid('reload');//ddv.edatagrid('reload');//$('#ddv-'+index).edatagrid('reload');
               }

I got the following error:
Code:
TypeError: row is undefined
_79c
deleteRow/<
each
each
deleteRow
$.fn.datagrid
_del/<
success
j
fireWith
x
b

The json reponse when deleting the row is below:
Code:
success true
isError false
msg Successfully deleted!

What could be the problem? Other options I tried are in the comment. Please help.
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: November 30, 2017, 09:10:15 AM »

There are no problems to reload the data after destroying a row. Please provide more information about your code, or provide an example to demonstrate your issue.
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!