Articles in this section

Customize the style for the selector in ASP.NET MVC Diagram

Customize the style for the selector

ASP.NET MVC Diagram provides a support for customizing the appearance of the Selector Element. You can customize the selector element by overriding the style of the 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 to the online JS Playground link below for your reference.

https://jsplayground.syncfusion.com/gfuj4vit

 

 

Conclusion

I hope you enjoyed learning about how to customize the style for the selector.

You can refer to our ASP.NET MVC Diagram feature tour page to know about its other groundbreaking feature representations and documentation, and how to quickly get started for configuration specifications. You can also explore our ASP.NET MVC Diagram example to understand how to create and manipulate data.

For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion®, you can try our 30-day free trial to check out our other controls.

If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forumsDirect-Trac, or feedback portal. We are always happy to assist you!

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Access denied
Access denied