I have set the Node.LabelFontColor to white for several of the shapes in my diagram. Unfortunately, the text-entry area that appears when typing in a label's content is also white. Therefore, I cannot see what I am typing.
Is there a way to set the color of the text-entry background, or some other technique that might be helpful to solve this issue?
Hi Jeff
Thanks for using Syncfusion products
We have created a Workaround sample to set background color for text entry area and sample is attached below for download.
Please let me know if any concerns.
Regards,
Shyam G
Thank you, I was able to use your workaround successfully. For the sake of others reading this thread, the workaround requires the following:
1. Create a JavaScript event handler to set the color and backgroundColor attributes of the MyNodeId_Textbox element. Something like this:
function TextEdit(sender, args) {
var elem = document.getElementById(args._Id + "_Textbox");
elem.style.backgroundColor = "black";
elem.style.color = "white";
}
2. Bind the event handler to the appropriate event in .Net. Where diagramView is an instance of DiagramView:
diagramView.Model.ClientSideOnNodeStartLabelEdit = "TextEdit";
Hope this helps someone else!
Hi Jeff,
We are glad that our sample workaround was helpful. Thank you for your valuable
points in addition to this.
Please let us know if you require any other assistance on this.
Regards,
Shyam G
I have set the Node.LabelFontColor to white for several of the shapes in my diagram. Unfortunately, the text-entry area that appears when typing in a label's content is also white. Therefore, I cannot see what I am typing.
Is there a way to set the color of the text-entry background, or some other technique that might be helpful to solve this issue?