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

save method doesn't seem to work

If I change the value property of an InPlaceEditor then call save() nothing happens.

I would expect it to POST the new data to the server (via the UrlAdapter setup).

Am I missing something here? Is there an another method I need to call or property I need to set first?

4 Replies 1 reply marked as answer

RO Rob March 13, 2023 03:29 PM UTC

I've managed to get it to work by calling the click() method on the .e-editable-value-wrapper and then calling save()

i.e. the save() method works if the editor is open, but I think it should also work if it's closed (and I've changed the value property?)

VJ Vinitha Jeyakumar Syncfusion Team March 14, 2023 03:00 PM UTC

Hi Rob,

We would like to inform you that we can only save and send the saved value to the server when the InPlaceEditor is in edit mode, as the form element will only be created during this mode. If the InPlaceEditor is not in edit mode, it will simply act as a wrapper element.


Marked as answer

RO Rob March 14, 2023 04:06 PM UTC

Thanks for clarifying Vinitha.

I ended up having to implement the POST here manually which isn't ideal (calling click() was unreliable).

Currently the save() method does nothing (fails silently) if called when not in edit mode.

Would it not be feasible for save() to invoke the UrlHandler POST behaviour even when not in edit mode?


VJ Vinitha Jeyakumar Syncfusion Team March 15, 2023 02:16 PM UTC

Hi Rob,

As mentioned previously, it is not possible to save and submit any edited value in the InPlaceEditor when it is in non-edit mode. This is because the InPlaceEditor only acts as a wrapper element, displaying the current input value. The form element will only be dynamically added when the InPlaceEditor is in edit mode. We have also attached a video illustration demonstrating the above scenario.


Attachment: Vid_IPE_4e22827c.zip

Live Chat Icon For mobile
Up arrow icon