EasyUI Forum
September 14, 2025, 02:04:43 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: datagrid + combogrid + null  (Read 6952 times)
rezzonico
Full Member
***
Posts: 186


View Profile
« on: October 06, 2015, 02:25:04 AM »

Hi all,

I am experiencing a problem when using a combogrid as editor for a datagrid field and the field value is null.

Please try the following example.
http://195.144.40.170/DDD/index.html

If you select the first or the third line all works ok.
But if you select the second line you receive the error "TypeError: _a33 is null".
The only difference is that in the second line there is a null value.

Regards
Miche
« Last Edit: October 06, 2015, 02:35:55 AM by rezzonico » Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: October 06, 2015, 03:02:51 AM »

Please try this code to solve this issue.
Code:
$('#dg').datagrid({
   onBeforeEdit: function(index,row){
      if (!row.OdL_ID){
         row.OdL_ID = '';
      }
   }
})
Logged
rezzonico
Full Member
***
Posts: 186


View Profile
« Reply #2 on: October 06, 2015, 05:44:07 AM »

Thanks !
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!