Posts

Showing posts with the label datatables

how to reduce speed of datatable

how to reduce speed of datatable Here is my code i am using jquey datatable i am fetching records from 1 table only but it's take hardly 5 sec to load records when i am trying to search records at that time at that time it's take 14 sec how to reduce data fetching sec i am already use searchDelay: 10 for reduce speed but still i am facing same problem. Controller : function customer_is_com_wise_datatable(){ $post_data = $this->input->post(); $id = $this->session->userdata('teen_is_logged_in')['customer_id']; $query = $this->app_model->get_categories_customer_list($id); $parent_data = $this->array_flatten($query,null); $customer_id_arr = array(); if(!empty($parent_data)){ foreach ($parent_data as $parent){ $customer_id_arr = $parent['customer_id']; } } $config['table'] = 'customers c'; $c...

DataTable search not working for dynamic rows

Image
DataTable search not working for dynamic rows I have following table #physician-privellages on which I have implemented DataTable . #physician-privellages DataTable .table table.table.table-striped#physician-privellages thead tr th First Name th Last Name th Email th Patient Privileges th Visit Privileges - if Authorizer.physician_practice? th My Practice th Actions tbody.privileged-physician-records - user_permissions_for_physicians = physician_privileges_permissions(user_id) - user_permissions_for_physician = user_permissions_for_physicians[user_id] - user_permissions_for_physician&.delete(user_id) - user_permissions_for_physician&.each do |user_id, user_permissions| tr td = "#{user_permissions[:physician].first_name}" td = "#{user_permissions[:physician].last_name}" td = "...