jqgrid-php

php + jqgrid + export to excel

血红的双手。 提交于 2019-11-28 05:02:13
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?? This is my approach, just add this code to your js/html file $("#list").jqGrid('navGrid', '#pager',{view:true, del:false, add:false, edit:false, excel:true}) .navButtonAdd('#pager',{ caption:"Export to Excel", buttonicon:"ui-icon-save", onClickButton: function(){ exportExcel(); }, position:"last" }); function exportExcel() { var mya=new Array(); mya=$("#list"

JQGrid Grouping GroupText formatting and modification

a 夏天 提交于 2019-11-27 21:40:58
I have a grid that implements grouping but would like to expand on the details that display in the groupText: area. Ideally I would be able to take data about that grouping and display in that group row with the group name ({0} default value). In other words what I am trying to achieve is a way to display not only the group name but also some other data items contained in the JSON feed to the grid. My searching seems to be coming up short on anyone being able to achieve this but I'm hoping someone can shed some light on expanding this setting and providing access to formating this area. Oleg I

When restoring JQGrid via jqGridImport search information is incorrect

人走茶凉 提交于 2019-11-27 08:13:46
问题 After having exported data using jqGridExport we import using jqGridImport. First problem was that the bottom bar options did not come back so I added that code after. So code looks like: $("#list").jqGridImport({imptype: 'jsonstring', impstring: gridSettings}) .jqGrid('navGrid','#pager', { edit: false, add: false, del: false, search: true, refresh:true }, {},{},{},{closeOnEscape: true, multipleSearch: true, closeAfterSearch: true},{}); The critical part of the gridSettings string is:

How to change column name in column chooser pop up in jqgrid?

我与影子孤独终老i 提交于 2019-11-27 05:38:47
I have a two column header Phase1 & Phase 2(image 1). Now showing the column names(Image 2) in column chooser window Name Category Subcategory Category Subcategory I want to show differently like Name Ph1 Category Ph1 Subcategory Ph2 Category Ph2 Subcategory Note: According to my requirement do not change the column name $grid.jqGrid({ data: mydata, datatype: "local", colNames:['Name','Category','Subcategory','Category','Subcategory'], colModel: [ {name: "Name"}, {name: "Category"}, {name: "Subcategory"}, {name: "PRCategory"}, {name: "PRSubcategory"} ], cmTemplate: {width: 200}, gridview: true

Mapping JSON data in JQGrid

Deadly 提交于 2019-11-27 04:54:41
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": [ { "course_description": "Math ", "date": "22-04-2010", "number": 1, "time_of_add": "2:00", "day": "today" } ] } ] } my jqgrid code is as follows jQuery("#"+subgrid_table_id).jqGrid({ url:"http://localhost/stud/beta/web/GetStud.php?sid="+sid, dtatype: "json", colNames: ['Stud Name','Year','Date'.'Number'], colModel: [ {name:

JQGrid Grouping GroupText formatting and modification

眉间皱痕 提交于 2019-11-27 04:32:33
问题 I have a grid that implements grouping but would like to expand on the details that display in the groupText: area. Ideally I would be able to take data about that grouping and display in that group row with the group name ({0} default value). In other words what I am trying to achieve is a way to display not only the group name but also some other data items contained in the JSON feed to the grid. My searching seems to be coming up short on anyone being able to achieve this but I'm hoping

php + jqgrid + export to excel

北战南征 提交于 2019-11-27 00:52:37
问题 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?? 回答1: This is my approach, just add this code to your js/html file $("#list").jqGrid('navGrid', '#pager',{view:true, del:false, add:false, edit:false, excel:true}) .navButtonAdd('#pager',{ caption:"Export to Excel", buttonicon:"ui-icon-save", onClickButton:

Highlight row when the checkbox is true

谁说胖子不能爱 提交于 2019-11-25 23:15:19
问题 Can Some one help me, I have a jqgrid and I want to highlight the row if the checkbox is true, thanks!! this is what i want to make in this project... function loadjqGrid(jsonGridData){ var xaxis=1300 var yaxis = $(document).height(); yaxis = yaxis-500; getGrids(); $(\"#maingrid\").jqGrid({ url:\'models/mod.quoservicetypedetails.php?ACTION=view\', mtype: \'POST\', datatype: \'xml\', colNames:getColumnNames(jsonGridData), colModel :[ {name:\'TypeID\', index:\'TypeID\', width:350,hidden:true,