EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: evaj on February 11, 2013, 02:54:18 AM



Title: insert row in datagrid
Post by: evaj 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


Title: Re: insert row in datagrid
Post by: stworthy on February 11, 2013, 11:40:16 AM
Please call loadData method to load uour rows.