⚠ 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

Crud table column



pavithra
  • profile picture
  • Member

Posted 25 May 2012 - 12:06 PM

i have more than 15 columns in my database but in crud render not showing all columns .pls help me what i have to do

kenvogt
  • profile picture
  • Member

Posted 25 May 2012 - 14:34 PM

Do they scroll off the page to the right? If the display is too wide, there will be a scroll bar at the bottom. Failing that, please show us your code.

pavithra
  • profile picture
  • Member

Posted 28 May 2012 - 04:12 AM

This is my code but the scroll bar is not enabaled..


$crud = new grocery_CRUD();
$crud->set_theme('datatables');
$crud->set_table('federal');
$crud->set_subject('Fedral');
$crud->display_as('country', 'Country');
$crud->display_as('cc_code', 'Credit Card Code');
$crud->display_as('fr_name', 'Franchisor Name');
$crud->display_as('fr_ledger_name', 'Franchisor Ledger Name');
$crud->display_as('m_username', 'Moneris Username');
$crud->display_as('m_password', 'Moneris Password');
$crud->display_as('m_api_token', 'Moneris Api Token');
$crud->display_as('m_merch_no', 'Moneris Merchant Number');
$crud->display_as('m_store_id', 'Moneris Store ID');
$crud->display_as('AR_GL', 'AR GL Number');
$crud->display_as('AP_GL', 'AP GL Number');

$this->template->write('title','Techsite List');
$output = $crud->render();
$this->template->render();
$this->_example_output($output);

web-johnny
  • profile picture
  • Administrator
  • 1,166 posts

Posted 28 May 2012 - 06:09 AM

Everything seems to be fine. Can you please have a printscreen of your problem? It is probably a CSS problem of your template (an oveflow:hidden or something like that). If yes then just add this line to your CSS:


.flexigrid div.bDiv
{
overflow: auto !important;
}

pavithra
  • profile picture
  • Member

Posted 30 May 2012 - 04:38 AM

[attachment=186:Screenshot-1.png]


above screen shot only 8 columns shown but i have more than 15 column with edit and delete action...