jqgrid-php

php + jqgrid + export to excel

Somebody knows a way to export the data from a jqgrid to excel? I want to do a report using this jqgrid that i think is awsome. But i need to save or print this report somehow, because is information to be keeped. Somebody knows any way?? ...

JQGrid and Microsoft SQL Server

Hello all, I am trying to get this awesome JQuery plugin working with SQL Server. I have setup PDO as I use it elsewhere (with MS Access) - I think I have it setup with sql server (2008) now. Here is how I connect: define('DB_DSN',"odbc:Driver={SQL Server};Server=MyInstance;Database=table1;"); define('DB_USER', ''); define('DB_PASSWOR...

selectLimit in JQgrid

Hallo, I have a problem. I'am trying to get some data from my database. But with a limit. So i use the selectLimit command. But when i load the grid my firebug gives the following error: "parsererror"?e:null},parse:function(d...d(a.fn.jqGrid,d);this.no_legacy_api|| When I go to the selectLimit in the jqgrid.php and print out what the ...

Mapping JSON data in JQGrid

Hi , I am using jqGrid 3.6.4 and a jquery 1.4.2 . in my sample i am getting following json data format & i want to map these json data into rows of a jqgrid { "page": "1", "total": 1, "records": "6", "rows": [ { "head": { "student_name": "Mr S. Jack ", "year": 2007 }, "sub": [ ...

Preventing the opening of a form on a add button click

Hey guys, Did you guys know how to prevent the open of a Form when I click on a add button? Maybe using beforeShowForm? function(formid) { if(jQuery('#gridap').getGridParam('selrow')) { idgridap=jQuery('#gridap').getGridParam('selrow'); jQuery('#FK_numerocontrato_ap',formid).val(idgridap).attr('readonly','rea...

Search option: jqGrid + PHP

Hi, I'm trying to get work this code: $("#list").jqGrid({ url: 'employers.php', datatype: 'json', mtype: 'POST', postData: {c : "", n: "", a: "", d: "", t: "", e: "", f: "", g: $('#selectSalary').value(), p: "", call: "report"}, colNames:...

jqGridPHP : jqGridRender Class > setColProperty > "editoptions"=>array("value"=> $datetime) > How to format the $datetime php variable ?

Hello, In a php file, i use the jqGridRender Class to build and manage a grid. To add a new item in my SQL table, i use (among others things) a php variable named $start. This variable is known, it belong to the PRIMARY KEY of this new item i want to add. Its type in the table is DATETIME and its value is "2010-06-16 06:00:00" How t...

How do I implement jqgrid v3.7 in my webapplication created using cakephp 1.3

I am trying to implement jqgrid v3.7 in my webapplication created using cakephp v1.3. My controller code is as follows function admin_index() { // get how many rows we want to have into the grid - rowNum parameter in the grid $limit = $this->params['url']['rows']; // get index row - i.e. user click to sort. At first time s...

How to work on jqgrid Add, edit, delete? using php...

hi, how to work on add row, edit, del the row in jqgrid? how to invoke editurl?? my code is below... jqgrid.php page. var $mygrid= jQuery("#list").jqGrid({ url:'example.php', datatype: 'xml', mtype: 'GET', ...

how to work on this jqgrid file without pdo?

How to work this code without pdo connection.? want to use normal db connection. if i use normal db connection, jqGridRender class not found. plz give me the soln.. enter code here <? php require_once 'jq-config.php'; // include the jqGrid Class require_once "php/jqGrid.php"; ...

jqGridPHP : fields displayed as images > initialization problem in edition mode !

Hello, I'm building a grid in a php file. Some fields are displayed as images. To do so, i use something like that (here is a example for one field): ... $grid->setColProperty("sample_global", array("label"=>"Sample", editable"=>true,"edittype"=>"select","editoptions"=>array("value"=>"0:Container;1:Automatic sampler;2:Transporting syst...

(jqGrid) Posting extra custom parameters to server

I have 2 Grids on my HTML page. When I click a row in one grid, it needs to load data into the other based on the selected row. Therefore I need to send the rowId as an extra parameter for the second grid.. Can't figure out how.. (I'd rather not like to use the subgrid functionality) ...

how to add checkboxes in the jqgrid top toolbar?

Hi all, In JQGRID top Toolbar, want to add the check boxes. these checkboxes are display from static array.. its used for search.. help me.. i did, toolbar: [true,"top"] thanks, vijay. ...

how to make jqgrid add row button as iframe?

I want to create Jqgrid add row button as iframe..when i click the add button it will open as iframe.. how to make it? plz give me an idea. ...

jqgrid update SelectCommand at runtime and listen for row select?

1) I am using the jqgrid plugin to show results from different selections a user can make on sliders and such. The jqgrid loads via a php command: $grid->SelectCommand = 'MySQL SELECT statement here'; But I want to change this, and reload the data at runtime (via jquery) when the user makes a change. (Also if possible I would like t...

Ajax call before jgrid is loaded

Hi. I need to pre-load some values from a php script, I'm using a $.post call (jquery) as follows: ... var grade, section,from,until,user; function loadData(){ $.post('procstring.php', {data: window.location.hash}, function(result){ grade = result.grade; ...

Changing the AJAX url in Jquery Plguin, JQGrid!?

I'm using the jqgrid plugin for jquery and jquery ui and I would like to change the AJAX url on a dom event. this is the instatiation of the jqgrid table: jQuery("#list").jqGrid({ url:'AJAX/JSON/json_member_mail.aspx', datatype: 'json', mtype: 'GET', colNames:['','Title', 'from','message',''], colModel :[ {name:...

problem with jqgrid..

my jqgrid doesnt seem to reload.. can anyone help me with this?.. $(function(){ $last_name = $("#search_last_name").val(); $first_name = $("#search_first_name").val(); }); $("#search").click(function(){ jQuery("#list2").jqGrid('setGridParam',{url:"http://localhost/bcb/index.php/bcb_c/grid"}); jQuery("#list2").trigger...

Need to override Search Filter url param (_search) in jgrid the jquery plugin?

Hi I have created a user message page with this plugin. The grid will show the user inbox and the user outbox(sent) messages. here's a little code: jQuery(document).ready(function() { //...some stuff currentURL = function() { return 'json_member_mail.php?task='+ currentBox; //where cur...

How can I change jQuery jQGrid Subgrid Caption

Need help in changing the caption of the subgrid of jQgrid also can I designed it based on my want's? When it collapsed it will show a certain layout out? ex: id: 200-2010 thanks! ...