Getting signature line and point data?

1 Answer 70 Views
SignaturePad
Aaron Abdis
Top achievements
Rank 1
Aaron Abdis asked on 08 Mar 2023, 03:02 PM

We have an app that we are porting over to MAUI from old PocketPC/WinMo code. 

The last piece we're missing is being able to capture a signature. I'm trying to use the Telerik MAUI Signature Pad, but it doesn't seem to support the data format we need. 

The signatures are stored in the database as a string, representing the point data of all the lines in the signature.
For example, something like 

"1,2;3,4;5,6;7,8/10,11;12,13;14,15/21,22;23,24;25,26"

Where the string is line-data separated by "/", and the line data is x,y point data separated by semi-colons. 

We don't need the component to present the data exactly that way... we can take care of formatting it how we need, as long as the component exposes a way to get the point and line data.

But I don't see any public methods or properties on it that seem to expose this. Near as I can see, the only way to get the signature from SignaturePad is as an image. While this is certain a nice option, especially in the modern world, it would mean reworking the backend, as well as the accompanying website, which is not part of the project.

Is there a way to get line/point data from the MAUI SignaturePad component?

1 Answer, 1 is accepted

Sort by
0
Didi
Telerik team
answered on 09 Mar 2023, 10:47 AM | edited on 09 Mar 2023, 02:50 PM
Hi Aaron,

Please take my apology for the empty answer. I have updated it. 

In general my reply had to be a comment below your initial question. I am not sure what went wrong with my reply in this forum thread.

Based on the requested scenario for the RadSignatuePad, could you please share what is the exact case you want to achieve having the lines and dots? For example if you change the SignaturePad plot are (width/height) these lines and dots will be invalid. 

Looking forward to your reply. 


Regards,
Didi
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Aaron Abdis
Top achievements
Rank 1
commented on 09 Mar 2023, 02:35 PM

I'm guessing that empty answer means "no, there isn't"? 

It's okay... Found the DrawingView component in the CommunityToolkit.Maui library on nuget, which does provide this, so it's all good.

Didi
Telerik team
commented on 09 Mar 2023, 02:51 PM

Hi Aaron, I updated the answer in this forum thread. Please share the exact case you want to achieve having the lines and dots. 

Thank you and I am looking forward to your reply.
Aaron Abdis
Top achievements
Rank 1
commented on 09 Mar 2023, 03:53 PM

I'm not sure what else to say. I gave the exact case we have in my question. 

We don't change the size - width or height - at all during run time. The size is set in the designer, and it is what it is. Not sure why that would be a concern. We capture it once on the handheld, and then display it as a dynamically rendered image on the associated website when users look up the associated records.

 

Didi
Telerik team
commented on 10 Mar 2023, 11:06 AM

I have logged this as a feature request on your behalf, https://feedback.telerik.com/maui/1600847-signaturepad-provide-an-option-to-get-the-point-data-from-the-signature as currently the RadSignaturePad does not provide this option. 

Thank you for the provided additional information. Please cast your vote for the item and press the follow button to track its progress. 
Tags
SignaturePad
Asked by
Aaron Abdis
Top achievements
Rank 1
Answers by
Didi
Telerik team
Share this question
or