EasyUI Forum
September 13, 2025, 08:29:05 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: datalist - appendrow  (Read 9800 times)
Szoron
Newbie
*
Posts: 21


View Profile
« on: March 15, 2015, 11:12:28 PM »

Welcome!
how to add dynamic data list data?

My code (fail)

What parameters can be added to the data?

THX for help
Code:
                    function add_installed_cpe(value){              
                      $('#installed_cpe_list').datalist('appendRow',{
                          valueField:'fds',
                          textField:'asd'                     
                      });
                    }
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: March 16, 2015, 08:15:01 AM »

Please try this:
Code:
function add_installed_cpe(value){              
  $('#installed_cpe_list').datalist('appendRow',{
      value:'fds',
      text:'asd'                     
  });
}
Logged
Szoron
Newbie
*
Posts: 21


View Profile
« Reply #2 on: March 16, 2015, 02:47:22 PM »

nothing.

inserting new line in the accordion, but the new line empty
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!