Jump to content


enable search option

search print export

  • Please log in to reply
7 replies to this topic

#1 jakjothi

jakjothi

    Newbie

  • Members
  • Pip
  • 5 posts
  • Locationchennai

Posted 09 January 2013 - 08:06 AM

in my datatables theme print, export and search option doesn't show please help how to display these options

#2 victor

victor

    grocery CRUD Hero

  • Advanced Member
  • PipPipPip
  • 967 posts
  • LocationMinsk

Posted 09 January 2013 - 08:14 AM

what version GC do you use?

#3 victor

victor

    grocery CRUD Hero

  • Advanced Member
  • PipPipPip
  • 967 posts
  • LocationMinsk

Posted 09 January 2013 - 08:15 AM

what version GC do you use?

#4 jakjothi

jakjothi

    Newbie

  • Members
  • Pip
  • 5 posts
  • Locationchennai

Posted 10 January 2013 - 05:54 AM

what version GC do you use?


version 1.3.3 latest version

#5 victor

victor

    grocery CRUD Hero

  • Advanced Member
  • PipPipPip
  • 967 posts
  • LocationMinsk

Posted 10 January 2013 - 06:52 AM

those options show by default. show your code.

#6 jakjothi

jakjothi

    Newbie

  • Members
  • Pip
  • 5 posts
  • Locationchennai

Posted 10 January 2013 - 07:17 AM

those options show by default. show your code.



function __construct()
{
parent::__construct();
$this->load->database();
$this->load->library('grocery_CRUD');
}

function index()
{
$this->load->view('header');
$this->load->view('nav');
$this->load->view('sidebar');
$this->load->view('dashboard');
$this->load->view('footer');

}

function get_category()
{

$this->category_output((object)array('output' => '' , 'js_files' => array() , 'css_files' => array()));

$crud = new grocery_CRUD();

$crud->set_theme('datatables');
$crud->set_table('t_category');
$crud->set_subject('Category');
$crud->columns('categoryName', 'friendlyName', 'description', 'status');
$crud->fields('categoryName', 'friendlyName', 'description', 'status');
$crud->display_as('categoryName', 'Name')->display_as('friendlyName', 'Slug Name');
$crud->add_action('Change Status', '', 'c_category/change_status');
$crud->required_fields('categoryName', 'friendlyName', 'status');

$crud->change_field_type('status', 'true_false');
//$crud->set_relation('parentId','t_cat_parent','parentName');
$output = $crud->render();
$this->category_output($output);
}

function category_output($output)
{
$this->load->view('category.php', $output);
}

#7 jakjothi

jakjothi

    Newbie

  • Members
  • Pip
  • 5 posts
  • Locationchennai

Posted 10 January 2013 - 07:21 AM

function __construct()
{
parent::__construct();
$this->load->database();
$this->load->library('grocery_CRUD');
}

function index()
{
$this->load->view('header');
$this->load->view('nav');
$this->load->view('sidebar');
$this->load->view('dashboard');
$this->load->view('footer');

}

function get_category()
{

$this->category_output((object)array('output' => '' , 'js_files' => array() , 'css_files' => array()));

$crud = new grocery_CRUD();

$crud->set_theme('datatables');
$crud->set_table('t_category');
$crud->set_subject('Category');
$crud->columns('categoryName', 'friendlyName', 'description', 'status');
$crud->fields('categoryName', 'friendlyName', 'description', 'status');
$crud->display_as('categoryName', 'Name')->display_as('friendlyName', 'Slug Name');
$crud->add_action('Change Status', '', 'c_category/change_status');
$crud->required_fields('categoryName', 'friendlyName', 'status');

$crud->change_field_type('status', 'true_false');
//$crud->set_relation('parentId','t_cat_parent','parentName');
$output = $crud->render();
$this->category_output($output);
}

function category_output($output)
{
$this->load->view('category.php', $output);
}

C:\Users\Elcot\Desktop\c.jpg

#8 victor

victor

    grocery CRUD Hero

  • Advanced Member
  • PipPipPip
  • 967 posts
  • LocationMinsk

Posted 10 January 2013 - 07:42 AM

Is there the problem when you use the default theme?





Also tagged with one or more of these keywords: search, print, export

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users