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

customize the style for the selector

Platform: ASP.NET Web Forms |
Control: Diagram |
Published Date: November 11, 2015 |
Last Revised Date: May 30, 2019

Customize the style for the selector

Diagram provides a support to customizing the appearance of the Selector Element. You can customize the selector element by overriding the style of selector element in the css class.

The following code illustrates how to customize the style of the selector element.

CSS

<style>
        /*Customizing the selector appearance at the time of rubberband selection. */
         #helper {
            stroke: black;
            stroke-width: 2px;
            stroke-dasharray:none;
            fill: gray;
            opacity: .1;
        } 
        /*Customizing the selector appearance after rubberband selection. */
         #resizeBorder {
            stroke: red;
            stroke-width: 5px;
            fill: #686868;
            opacity: .1;
        }
 
        /*Customizing the circle of the selector element.*/
        #nw-resize, #n-resize, #ne-resize, #w-resize, #e-resize, #sw-resize, #s-resize, #se-resize
        {
            stroke: red;
        }
</style>

 

 

 

Default Selector style at the time of rubberband selection.

 

Default selector style for nodes at the time of rubber band selection

 

Customized Selector style at the time of rubberband selection.

 

 Customized selector style at the time of rubber band selection.

Default Selector style after rubberband selection

 

Default selector style for rubber band selection.

Customized Selector style after rubberband selection.

 

Customized selector style for rubber band selection.

  

 

Please refer the below online JS Playground link for your reference.

http://jsplayground.syncfusion.com/gfuj4vit

 

 

2X faster development

The ultimate ASP.NET Web Forms UI toolkit to boost your development speed.
ADD COMMENT
You must log in to leave a comment

Please sign in to access our KB

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

Up arrow icon

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

Live Chat Icon For mobile
Live Chat Icon