Regarding Enable/ Disable Some Options in Datatable when no records

Regarding Enable/ Disable Some Options in Datatable when no records

amrit_486amrit_486 Posts: 5Questions: 1Answers: 0

Hi Team,

Good Morning.

I need a quick help regarding enabling/ disabling export xls/export pdf and print buttons when no records available in table and also disable pagination. Is there any way to do that?

And also can we show inbuilt loader before result loaded in table.

Thanks & Regards,
Amrit A.

Replies

  • colincolin Posts: 15,240Questions: 1Answers: 2,599

    Hi @amrit_486 ,

    Yep, you can disable buttons with the button().disable() method. You could call that in an event, such as init if static data or xhr if loading via Ajax.

    I'm not sure what you mean by showing the "inbuilt loader", sorry.

    Cheers,

    Colin

This discussion has been closed.