contacts.php - good left top panel 7/30/17 PHPGRID_DBTYPE, "server" => PHPGRID_DBHOST, "user" => PHPGRID_DBUSER, "password" => PHPGRID_DBPASS, "database" => PHPGRID_DBNAME); # create contacts grid $g = new jqgrid($db_conf); #Set table specific options $opt = array(); $opt['caption']= "Contacts Grid"; #$opt['responsive'] = true; NOT WORKING SJH 7/28/17 #$opt['shrinkToFit']= true; NOT WORKING SJH 7/28/17 $opt['autowidth']= true; $opt['autoresize']= true; #THIS IS THE RESPONSIVE OPTION!! $g->set_options($opt); $g->table = "contact_types"; #Set column specific options /*$col=array(); $col["title"] ="Contact Type Id"; $col["name"] ="Contact Type Id"; $col["width"]="80"; $col["editable"]=false; $col["visible"]="sm+"; $col["resizable"] = true; $cols[]=$col; $col=array(); $col["title"] ="Contact Id"; $col["name"] ="Contact Id"; $col["width"]="20"; $col["editable"]=false; $col["visible"]="sm+"; $cols[]=$col; $col=array(); $col["title"] ="Contact Type Name"; $col["name"] ="Contact Type Name"; $col["width"]="100"; $col["editable"]=false; $col["visible"]="sm+"; $cols[]=$col; $col=array(); $col["title"] ="Building Id"; $col["name"] ="Building Id"; $col["width"]="20"; $col["editable"]=false; $col["visible"]="sm+"; $cols[]=$col;*/ #Set the cols as the options were specified $g->set_columns($cols); // you can provide custom SQL query to display data $g->select_command = "SELECT * FROM contact_types"; $out=$g->render("list1"); }#end if ?>