Datatable sort column custom

Hi team,

I wish sort datatable data trough a custom server call

I can catch onBeforeFilter to send filter to the server with a custom load function

Is it possible to catch or customise something to get the sort call when we use a custom url function please ?

https://snippet.webix.com/jj6oe4m0

Regards,
Xavier

I found onBeforeSort event !

https://snippet.webix.com/e31vgozt

just a question : whene i put the sort to = “server” (and i use nBeforeSort)

how to avoid this error please ?

Uncaught TypeError: Cannot read properties of undefined (reading ‘then’)
dataloader.js:67

Hi, @XavierDP!
As I can see in your snippet, the reason for such an error is the data you use. Server filter is a text filter that works with the backend. Retrieves the text from the text field and sends a request to the server to return filtered data.
So if you change the data the error disappears: Code Snippet

What about the fact that onBeforeSort doesn’t fire when you use sort: "server", unfortunately, it’s a known bug and it hasn’t been fixed yet.

Hi @NastassiaM,

Ok thank you