⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

Not able to see rows of a table (columns being display)



Rizban Ahmad

Rizban Ahmad
  • profile picture
  • Member

Posted 28 March 2016 - 11:00 AM

Hi Seniors,

I am newbie here to use Grocery CRUD.

I am using CodeIgniter 3.0 and Grocery CRUD 1.5.0.

 

Below is my table structure:

 

CREATE TABLE IF NOT EXISTS `mod_pipeline_tasks` (
  `id` int(10) unsigned NOT NULL,
  `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `active` tinyint(1) NOT NULL DEFAULT '1',
  `delay` int(10) unsigned NOT NULL DEFAULT '0',
  `source_id` int(10) unsigned NOT NULL,
  `frequency_id` int(10) unsigned NOT NULL,
  `general_task_id` int(10) unsigned DEFAULT NULL,
  `description` text
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
 
ALTER TABLE `mod_pipeline_tasks`  ADD PRIMARY KEY (`id`);
ALTER TABLE `mod_pipeline_tasks`  MODIFY `id` int(10) unsigned NOT NULL AUTO_INCREMENT;
 
Here it is my source code to display list of tasks:
 
$this->load->library('grocery_CRUD');
            $this->grocery_crud->set_table('mod_pipeline_tasks');           
            $data['crud'] = $this->grocery_crud->render();            
            $data['view'] = 'global/crud';
            $this->load->view('main', $data);

 

 
My problem is that, when i am rendering data on a page by calling its URL then all records displaying (attached image),
but when i am trying to render data using ajax then, only column of table being display.
 
I have googled so many time and did not find any relevant answer. Can you please help me asap.