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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

textTool will not activate

Thread ID:

Created:

Updated:

Platform:

Replies:

118051 Jan 25,2015 07:05 PM UTC Jan 30,2015 10:11 AM UTC ASP.NET Web Forms 3
loading
Tags: Diagram
Jim Jacobs
Asked On January 25, 2015 07:05 PM UTC

Hi,

I am able to activate other tools like orthogonalLine and panTool, but the following does not activate the text tool:

            case 'textTool':
                diagram._clearSelection();
                diagram.deactivateTool();
                diagram.activateTool("textTool");
                break;

What am I doing wrong?

Thanks

Jim

Shyam G [Syncfusion]
Replied On January 27, 2015 08:36 AM UTC

Hi Jim

Sorry for the delay

We have created a simple sample which meets your requirement and it is available in the below link for download. Please see the code snippet below.

Code snippet:

<input type="button" value="textTool" onclick="texttool()" />

$(window).load(function () {

            $("#Diagram1").ejDiagram({

          //initializing drawingtools

                drawingTools: { textTool: ej.datavisualization.Diagram.TextTool(), }

            });

        });

        function texttool() {            

            var diagram = $("#Diagram1").ejDiagram("instance");

            diagram.activateTool("textTool");

        }

Sample:http://www.syncfusion.com/downloads/support/directtrac/118051/texttool1380357665.zip

Please let me know if any concerns.

Regards,

Shyam G



Jim Jacobs
Replied On January 30, 2015 12:41 AM UTC

Hi Shyam,

Thanks, the code you provided works great.

Jim

Shyam G [Syncfusion]
Replied On January 30, 2015 10:11 AM UTC

Hi Jim

Thanks for the update

Please let me know if you require further assistance on this.

Regards,

Shyam G



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.

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

;