We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Dynamic creation of elements.

Thread ID:





33240 Aug 16,2005 03:58 PM UTC Aug 17,2005 10:57 PM UTC WinForms 2
Tags: HTMLUIControl
Toby Lange
Asked On August 16, 2005 03:58 PM UTC

Hi, 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? Thanks, Toby Lange POCNewHTML_2798.zip

Administrator [Syncfusion]
Replied On August 17, 2005 02:44 PM UTC

Hi Toby, We are working on this and I will post a reply within the next few hours. Thanks, Davis

Administrator [Syncfusion]
Replied On August 17, 2005 10:57 PM UTC

Hi Toby, 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. Thanks, Davis


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon