Is there any chance to use CustomAdaptor in SfInPlaceEditor component?
Hi team,
In my own scenario, I would like to use CustomAdaptor in SfInPlaceEditor to update changes to the server just like using CustomAdaptor in SfGrid. But I failed to make a SfDataManager with "Adaptors.CustomAdaptor" mode work in SfInPlaceEditor. My code is like this:
<SfInPlaceEditor Mode="RenderMode.Inline" Type="InputType.Text" Value="SomeValue">
<SfDataManager Adaptor="Adaptors.CustomAdaptor">
<MyCustomAdaptor></MyCustomAdaptor>
</SfDataManager>
</SfInPlaceEditor>
When the data changed, nothing happened in MyCustomAdaptor class, even though I overrode all CURD methods of DataAdaptor and toke breakpoints to test, all that I can detect was the OnInitialized and its async version method being called. Is the CustomAdaptor mode not supported in SfInPlaceEditor yet? Or could you supply a proper sample to implement this kind of requirement?
Thanks.
SIGN IN To post a reply.
5 Replies
IS
Indrajith Srinivasan
Syncfusion Team
May 13, 2020 01:10 PM UTC
Hi Genii,
Greetings from Syncfusion support,
We have validated your reported query. Since the SfInplace-editor is rendred with type text, which is not a data component.
Can you please share your usage of the CustomAdaptor with Inplace-editor ?
Regards,
Greetings from Syncfusion support,
We have validated your reported query. Since the SfInplace-editor is rendred with type text, which is not a data component.
Can you please share your usage of the CustomAdaptor with Inplace-editor ?
Regards,
Indrajith
BR
Brian
May 14, 2020 02:16 AM UTC
Yes. In my scenario, UrlAdaptor is OK but not that convenient. I use Volo.Abp framework as my backend, which provides a quite flexible mechanism of "API Client Proxy". For short, that means I can call my RESTful services not via Url string , but via some RPC like methods(actually not RPC of course), which perfectly fits for Blazor client since they can share the same net core package to simplify my code a lot.
So, without supplying Url, the UrlAdaptor is useless, I need a CustomAdaptor to consume my injected Client Proxy object, and in fact I have fulfilled this kind of CustomAdaptor work fine with SfGrid.
I hope the same mechanism could be supplied in In-Place Editor, that will be quite helpful.
Thanks for concern.
IS
Indrajith Srinivasan
Syncfusion Team
May 14, 2020 03:18 PM UTC
Hi Genii,
Thanks for the update,
We have validated the reported query. Since the Inplace-editor is not data bound component and doesn’t support DataAdaptor.
Thanks for the update,
We have validated the reported query. Since the Inplace-editor is not data bound component and doesn’t support DataAdaptor.
Please let us know if you need any further assistance.
Regards,
Indrajith
BR
Brian
May 19, 2020 01:11 AM UTC
It's all right. I have bypassed the issue through Flux mode. Thanks for your concern.
IS
Indrajith Srinivasan
Syncfusion Team
May 19, 2020 08:47 AM UTC
Hi Genii,
Thanks for the update,
Please let us know if you need any further assistance.
Regards,
Indrajith
Thanks for the update,
Please let us know if you need any further assistance.
Regards,
Indrajith
SIGN IN To post a reply.
- 5 Replies
- 2 Participants
-
BR Brian
- May 12, 2020 08:38 AM UTC
- May 19, 2020 08:47 AM UTC