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

Label entry when LabelFontColor is white

Thread ID:

Created:

Updated:

Platform:

Replies:

116335 May 15,2014 11:46 PM UTC Mar 2,2018 12:40 PM UTC ASP.NET MVC (Classic) 5
loading
Tags: Diagram
Jeff
Asked On May 15, 2014 11:46 PM UTC

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? 


Shyam G [Syncfusion]
Replied On May 16, 2014 05:01 PM UTC

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


Attachment: MvcApplication130_1d91821d.zip

Jeff
Replied On May 20, 2014 09:27 PM UTC

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!


Shyam G [Syncfusion]
Replied On May 21, 2014 10:10 AM UTC

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


Jeffrey Kesselman
Replied On March 1, 2018 09:29 PM UTC

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? 


I agree

Kutraleeswaran [Syncfusion]
Replied On March 2, 2018 12:40 PM UTC

Hi Jeffrey, 
 
We are able to reproduce the reported issue at our end. However you are using the classic version of ASP.Net MVC Diagram Product. The reported issue is already fixed in newer version of ASP.Net MVC Diagram Product.  
 
The newer version provides several advantages over the classic edition including being purely client side rendered HTML5/JavaScript controls, offers better performance and provides better support for touch interactivity. The newer version includes all the features that the classic version had so it should be easy to migrate if required.  
 
You can check the newer version of ASP.Net MVC Diagram Product Functionalities in below link: 
 
 
 
Regards, 
Kutraleeswaran Samuthirapandian 
 
 
 
 


CONFIRMATION

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

or the page will be automatically redirected to 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

;