Hi Brian,
I was able to reproduce your problem. I have placed a feature request for the BeginUpdate() not showing the effect.
Regarding adding styles at run time to the HTML elements, this can be done using two methods:
1) We can assign the styles directly by changing the value of the style attribute as shown below:
textareaElement.Attributes["style"].Value = "background-color:yellow;"
if you don''t have a style attribute, you can add the attribute with the help of the Add method as shown below:
if(elem.Attributes.Contains("style") == false)
elem.Attributes.Add("style");
I have attached a sample for this method. Please let me know if it helps.
34496_changestyle_style.zip
2) With the help of style tags, we can change the styles by changing the value of the class attribute as shown below:
textareaElement.Attributes["class"].Value = "newStyle";
A sample that uses this method to add styles is attchaed below:
34496_changestyle_class.zip
Hope it meets your requirements.
We appreciate your patience. Thank you for your interest in the Syncfusion products.
Regards,
Nanda.