The application we are working on needs to append rows to a table element at runtime. The number of rows that needs to be supported is 500. Also, we need to be able to replace the inline style sheet at runtime. I have questions about the best way to implement this.
My first attempt at the table problem was to simply append to the InnerHTML property of the TABLEElementImpl object. This works, but is not fast enough when the table size increases (probably due to the need to re-parse the entire table''s HTML). This is what the AddMessage method in the attached project does.
My next attempt at the table was to new a TRElementImpl object and set it''s InnerHTML property to be the needed table cells. This TRElementImpl object was then added to the TABLEElementImpl.Children collection. Should this method work?. Can you tell me what I am doing wrong? This method would seem to be the better way to add rows to the table since it would avoid re-parsing the HTML every time. This is what the AddMessage2 method in the attached project does.
I also could not figure out how to get the control to render the new styles after I set the InnerHTML property of the StyleElementImpl object. Is there a method to re-apply the styles for a whole document after I change them?
ADAdministrator Syncfusion Team August 17, 2005 09:44 AM
We are working on this and I will post a reply within the next few hours.
ADAdministrator Syncfusion Team August 17, 2005 05:57 PM
I have checked with the developers and they are working on improving the rendering of the changed InnerHTML for the table cells. The second approach does seem more direct, but it is not supported currently. I have asked them to look into adding support for this approach also. We regret for the inconvenience caused.