EasyUI Forum
May 21, 2024, 02:04:56 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: insert row in datagrid  (Read 10480 times)
evaj
Newbie
*
Posts: 13


View Profile Email
« on: February 11, 2013, 02:54:18 AM »

Hello,
I'm using a datagrid but when I'm going to append a lot of rows is very slow, then I'm trying to use append in jquery but it is not works

html code:
                  <table id="dg" class="easyui-datagrid"> 
                   <thead> 
                       <tr> 
                           <th data-options="field:'code'">Code</th> 
                           <th data-options="field:'name'">Name</th>
                       </tr> 
                   </thead> 
         </table>
Jquery code:

             tds+="<tr>";
             tds+="<td>" + code + "</td>";
             tds+="<td>" + name + "</td>";
             tds+="</tr>";
             
             
    $("#dg").append(tds);


Please could you help me

thanks
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: February 11, 2013, 11:40:16 AM »

Please call loadData method to load uour rows.
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!