Jump to content


Member Since 23 Nov 2015
Offline Last Active May 12 2016 11:01 PM

Topics I've Started

Bootstrap theme: How to disable table resize and column width

03 May 2016 - 10:52 PM

Hello, i recently acquired Bootstrap Theme and already made my modifications.


However, how do i disable table resize, i'll explain:


I have this in full screen mode (1600x900), it looks good, but there's a little space gap in left and right sides.




But when i reduce the browser size, the gap is more big.




I want to fill the table to 100% of his container (i'm using an iframe).


Also, i want to disable the same width-column feature in this theme, i want it sized like flexigrid theme, using the width as it needs.





Ajax crud loader issue?

23 November 2015 - 03:18 PM

Hello, i'm new here and i'm new using grocery crud (such amazing crud!!).


My problem is:


I'm using codeigniter, i don't like full page refreshes so i'm loading my crud table inside a div using ajax, but in the first load, buttons doesn't show correctly, it looks like this:



... but after several reloads (using F5, i'm captured the hash to request the required controller from server on document.ready), it shows correctly:



My internal code (por "parametro" controller, showed in the images) is:

<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Parametro extends CI_Controller {

    public function __construct(){
    public function index(){
        if(!$this->verificarUserDataSesion()) {
            header('Location: ' . base_url());
        $crud = new grocery_CRUD();
        $crud->set_subject('Parametro del Sistema');
            array('U' => 'Usuario', 'S' => 'Sistema'));
        $contenido= new stdClass();
        $data= new stdClass();
        $data->titulo= 'GestiĆ³n de Parametros del Sistema';
    private function verificarUserDataSesion(){
            return true;
            return false;

Im loading it inside a div (with buttons) with this javascript (using jquery) code:

	$("#sis-usua").click(function(e) { simple_load("usuario"); });
	$("#sis-agen").click(function(e) { simple_load("agencia"); });
	$("#sis-para").click(function(e) { simple_load("parametro"); });
	$("#par-marc").click(function(e) { simple_load("marca"); });
	$("#par-unid").click(function(e) { simple_load("unidad"); });
	$("#par-clie").click(function(e) { simple_load("cliente"); });
	$("#par-prov").click(function(e) { simple_load("proveedor"); });
	function simple_load(controller){
		.html("<center><img src=\"<?=base_url()?>img/loader-small.GIF\" style=\"margin-top:100px;\"></center>")
		.load("<?=base_url()?>" + controller);

My problem is in the first image, it's not showing correctly, i have headaches trying to figure it out, also i have some questions:

  • I can preload js and css files in header and not calling it every time i load a crud table?
  • Why new styles are not applying when i refresh (or reload) ti the crud table after i modify the original flexigrid.css file, it's an ajax issue?

Please help me and sorry if my english is bad.