2/3/4 to change column-configuration after initialization you have to call refreshColumns(). refreshColumns will trigger onAfterRender which will lead to infinit loops if you use your current implementation.
yes I want rest response in my snippet. If I use data.pull method I only get the table data, but I have one scenario in which I will need other keys of response
yes I want rest response in my snippet.
then do not use dynamic loading and load all of data at once.
or you can use custom proxy and pass extra required data from serverside in the response.
And my pagination and table data binding is working fine, but I have one scenario in which I want my response. result field. How can I fetch it? And my loadNext callback is not working
I guess you want to change your datatable configuration based on your response.
You could define a custom component with an $onLoad method. It’ll get called before the data is parsed. If you return false it’ll skip parsing.
Be aware that there isn’t an $onLoad method used by the datatable currently and if that changes in the future, you’ll may have to call the default one inside yours.