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. Image for the cookie policy date
close icon

@ Html.EJ (). Signature Do not clear data

Control Signature There are no items to choose from. Select us. Select Button to pass.

Q1
-----
@{
ViewBag.Title = "Index";
Layout = "~/Views/Shared/_Layout.cshtml";
}
@Html.EJ().Signature("mySignature").Height("400px").StrokeWidth(3).IsResponsive(true).saveWithBackground(true).IsResponsive(true).StrokeColor("blue").BackgroundColor("grey")
@Html.EJ().Button("signSave").Text("Save").ShowRoundedCorner(true).ClientSideEvents(e => e.Click("onSave"))
@Html.EJ().Button("signClear").Text("Clear").ShowRoundedCorner(true).ClientSideEvents(e => e.Click("onClear"))


We added the script but the website deleted it.
We therefore attach it as a picture.


--------------------------------------------
Q2
---
function onSave() {
Can set the image size, save time such as 250 * 250 pixel
And set the image to store the background as transparent
Ask for advice.
Thank you very much for the advice.

Attachment: Capture_error_772606b.zip

2 Replies

AB Ashokkumar Balasubramanian Syncfusion Team August 5, 2019 11:49 AM UTC

Hi Phonchai Sakunchinnasee, 
 
Greetings from Syncfusion support. 
 
Query: We added the script but the website deleted it.We therefore attach it as a picture. 
 
We have checked your query in our signature control. For your provided code code block, you have not added BackgroundImage for signature control, but you have set the saveWithBackground value as true. Our saveWithBackground property only works when we sepcify the backgroundImage for our component. Please refer the below sample. 
 
 
Query: Can set the image size, save time such as 250 * 250 pixel. And set the image to store the background as transparent 
 
Currently we are working on your query and will update further on this to you shortly. 
 
Regards, 
Ashokkumar B.  



AB Ashokkumar Balasubramanian Syncfusion Team August 6, 2019 03:40 PM UTC

 
Hi Phonchai Sakunchinnasee, 
 
Query: Can set the image size, save time such as 250 * 250 pixel. And set the image to store the background as transparent  
 
We have met with your requirements to save the signature image after clicking the save button with particular height and width. We have created sample for your requirement, please find it below. 
 
 
Please check the above provided sample and get back to us, if you have any concern on this. 
 
Regards, 
Ashokkumar B. 


Loader.
Live Chat Icon For mobile
Up arrow icon