Title: Re-load datagrid with new HTML rows Post by: mjkahn 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! Title: Re: Re-load datagrid with new HTML rows Post by: mjkahn 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! |