- Home
- Forum
- ASP.NET Core
- @ Html.EJ (). Signature Do not clear data
@ 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.
function onSave() {
var sign = $("#mySignature").ejSignature("instance");
sign.option("saveImageFormat", "png")
sign.save("mySignature");
}
function onClear() {
var sign = $("#mySignature").ejSignature("instance");
sign.clear();
}
function onSave() {
var sign = $("#mySignature").ejSignature("instance");
sign.option("saveImageFormat", "png")
sign.save("mySignature");
}
function onClear() {
var sign = $("#mySignature").ejSignature("instance");
sign.clear();
}
--------------------------------------------
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
SIGN IN To post a reply.
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.
SIGN IN To post a reply.
- 2 Replies
- 2 Participants
-
PS Phonchai Sakunchinnasee
- Aug 1, 2019 11:08 AM UTC
- Aug 6, 2019 03:40 PM UTC