EasyUI Forum
April 20, 2024, 03:21: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: Re-load datagrid with new HTML rows  (Read 16933 times)
mjkahn
Newbie
*
Posts: 4


View Profile
« on: July 27, 2011, 04:57:02 AM »

I have an HTML table that I've turned into a datagrid, and it displays beautifully.

When the user clicks a button on the page, I have some JavaScript that communicates with the server, gets the HTML for some new rows, and replaces the original table's contents with the new rows. That's working fine, but I can't seem to get the datagrid to display the new data. Any suggestions?

Thanks very much!
Logged
mjkahn
Newbie
*
Posts: 4


View Profile
« Reply #1 on: July 27, 2011, 06:56:19 AM »

I took the easy way out and just removed the HTML table from the DOM, then added it back in again. After that, I re-create the datagrid from the new table. This works fine.

I'd still like to know if there's a way to force a datagrid to load itself from new HTML table rows, but the need is less urgent now.

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!