Base solution for your next web application
Open Closed

Datatable / search options on small view port #8062


User avatar
0
deltavision created

Hi,

using core/jquery/mvc

Any best pratice og how-tos on controlling views on small viewport / mobile.

Wish to define a "compact" view of datatable - remove search fields etc. when on mobile.

I know an option is to use the mobile solution - but to avoid that :-)


2 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @deltavision

    Sorry for my late reply. The option we are using is DataTable's responsive feature, see https://datatables.net/extensions/responsive/.

    I'm not sure if Datatables supports function for searching option but you can try;

    searching: function(){ return !KTUtil.isMobileDevice(); }

  • User Avatar
    0
    deltavision created

    Hi ismcagdas

    I found a solution using datatables - responsivePriority. and combining it with a column that renders all other columns to one column on small devices.

    Closing the case