Add a some kind of a function callback in columns.visible method

Add a some kind of a function callback in columns.visible method

Gabriel23Gabriel23 Posts: 33Questions: 8Answers: 0

I have a button which pretty much shows a few columns in my dataTalbe. What I want to do is to show a loading screen while the rendering of dataTable is still ongoing so I need somewhat of a function callback or could you tell me which function does get called in dataTable after calling column.visible() .

Answers

  • Gabriel23Gabriel23 Posts: 33Questions: 8Answers: 0

    Ok thought that drawcallback is not working , but I was wrong , closed.

  • colincolin Posts: 15,146Questions: 1Answers: 2,586

    Hi @Gabriel23 ,

    You could use buttons-action to start the process, and column-visibility for the end. The full list of events are here.

    Cheers,

    Colin

  • Gabriel23Gabriel23 Posts: 33Questions: 8Answers: 0

    I have problems , I don't know exactly where to define it , if I define in document.ready is not working

  • colincolin Posts: 15,146Questions: 1Answers: 2,586

    We're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.

    Cheers,

    Colin

  • Gabriel23Gabriel23 Posts: 33Questions: 8Answers: 0

    The strange thing is that if I define function in console it works ok

This discussion has been closed.