Loading remote data into slickgrid via AJAX #829
-
Could somebody shed some light on how remote data loading happens on this version of slickgrid? We've used the old jquery version of slick and used to fetch API using $.ajax() method (I think we might customized that line to use ajax). Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
First off, you can still use jQuery if you wish, though most users are going away from it. If you still need JSONP, then you could use other 3rd party lib like fetch-jsonp, you can see code demo of that on the Angular-Slickgrid project that I support, it's shown on these lines Instead of using jQuery ajax, you could switch to Fetch which is now built-in feature of newer browsers, see CanIuse - Fetch for availability. We haven't spend time to remove the jQuery code from If you don't like Fetch, you could also use the very popular Axios library. In summary, I don't think we'll spend more time on converting |
Beta Was this translation helpful? Give feedback.
First off, you can still use jQuery if you wish, though most users are going away from it. If you still need JSONP, then you could use other 3rd party lib like fetch-jsonp, you can see code demo of that on the Angular-Slickgrid project that I support, it's shown on these lines
Instead of using jQuery ajax, you could switch to Fetch which is now built-in feature of newer browsers, see CanIuse - Fetch for availability.
We haven't spend time to remove the jQuery code from
slick.remotemodel.js
because it's too much jQuery specific code. You can still use that slick remote if you are still referencing jQuery but without jQuery then it becomes irrelevant. Personally I never used it and only eve…