The AjaxStore ignores options.parseJSON: false, when transformLoadedData(response.parsedJson) is called. We would like to parse YML instead of JSON. Could you please handle also this case so the response is passed in transformLoadedData when parseJSON is false ?
The AjaxStore is designed to work with JSON data, and currently, it does not support parsing YML directly. The transformLoadedData function is called with the parsed JSON data, and there isn't a built-in option to bypass JSON parsing.
To handle YML, you might consider intercepting the fetch response before it reaches the store and converting it to JSON format. You can use a custom fetch function or middleware to achieve this.
Here's a basic example of how you might intercept and transform the response:
Still I think you need to finish the code around options.parseJSON: false, because otherwise it is an useless parameter. And the only change required is just on this line:
data = me.transformLoadedData ? me.transformLoadedData(response.parsedJson) : response.parsedJson,
Please never rely on private code, only use documented public API.
Your workaround does not seem to work, the AjaxStore.sendLoadRequest is still using the default fetch
Please show your code. In Marcio's demo code he created an instance with overloaded method. Did you call instance's method? Your code looks like AjaxStore is not an instance.
Please never rely on private code, only use documented public API.
Due to some missing features in Bryntum, we've had to dive into the code, apply overrides, and tailor it to our needs — confidently and with tests. So no worries, unless you want help us adding those things
Please show your code. In Marcio's demo code he created an instance with overloaded method. Did you call instance's method? Your code looks like AjaxStore is not an instance.
It works as you've shown, but not in a store class like here https://codepen.io/Vadim-Popa/pen/bNVWLQa . Also the only "your code" I've shared in this thread, is from the source code of the AjaxStore
The reason why we do not recommend to use private API is because we rename/remove/change private logic/methods without any notification, expected and actual behaviour of methods might be not fit your expectations. Another problem you will face - problems when upgrade versions. We release every few weeks and do not support old versions, all fixes are always only in last release.
You use sendLoadRequest as static method, but it's not static. Please make sure you see difference via class and instance.
If you need, you can add static method and use it, or override base class. https://bryntum.com/products/grid/docs/api/Core/mixin/Override
We understand that risk, and for that we have tests. Those will catch any issues quickly. Also we are running diffs between the versions to understand what has changed.
Have you checked the codepen I shared, from API point of view or use case, it's a valid example. Please let me know how can I have a store class that can parse an YML (accept our parser, or in Sencha world a yml reader) that can be instantied by related widgets (combo).....of course we can find workarounds for this...but from API point of view it seems that Bryntum does not support this by default, hence is the Feature request.