Custom View And .SaveEdits()/.LoadEdits()

Custom views do not appear in .SaveEdits() output.  I really need to be able to do a .LoadEdits() that includes some custom views, I'm wondering if there is any way to accomplish this?

Also- I need to have the custom view be transparent (so you can see what's behind it), I've tried both of these approaches:




Basically I need to be able to display html on the page.  I wonder if you could consider making the default text control into a rich text control?  There'd be no downside to it.



3 Replies

VR Vignesh Ramesh Syncfusion Team February 4, 2022 04:59 PM UTC

Hi Jonah Coleman, 

Query 1: Custom views do not appear in SaveEdits() output. 
Currently, SfImageEditor does not have support to serialize and de-serialize the custom views. But already we have logged a feature request for this and it can be tracked through our feedback portal below.   
    
    
Please cast your vote to make it count. We will prioritize the features every release based on the demands, since we don’t have an immediate plan to implement this feature and it will be included in any of our upcoming releases. 

If you have any more specifications/suggestions to the feature-request, you can add it as a comment in the portal 

Query 2:  I need to have the custom view be transparent 
We have checked the background behavior of SfRichTextEditor and WebView by adding them to normal views like Grid with a transparent background. Instead of adding it as a CustomView in SfImageEditor, it is rendered with a white background. So, it is the default behavior of those controls. 

Query 3: you could consider making the default text control into a rich text control? 
Currently, SfImageEditor has a provision to add the normal text only along with the font and size customizations. Also, you can add multiple texts in the SfImageEditor, and we don't have a plan to replace it with the SfRichTextEditor like controls. Please refer to the below user guide documentation link for more information about existing text and its customization support in SfImageEditor. 


Regards, 
Vignesh Ramesh. 



JC Jonah Coleman March 4, 2022 07:27 AM UTC

FYI for query 2 I was able to override the webview control's render to have a transparent background and achieve my needs.

For Query 1- I would only need the CustomViewSettings object data- I'm not sure what serializing the actual controls added to the custom view would even mean (although awesome if you can pull it off!).  I will update the request.



ET Eswaran Thirugnanasambandam Syncfusion Team March 4, 2022 04:40 PM UTC

For the Query 1, we have updated the response in the corresponding feedback. Please follow-up the feedback for further updates. 


Loader.
Up arrow icon