jqgrid

How do I hide a jqGrid column of variable name?

I have a jqGrid column which name may change (is a variable), how do I get the name and hide it? Something along the lines of the below (which don't work) $('#tblGridName').jqGrid('hideCol',4); or var infoName = $('.ui-jqgrid-htable th:eq(4)').text(); $('#tblGridName').jqGrid('hideCol',infoName ); ...

how to create first column value of jqgrid as iframe window?

In the jqgrid, when i click the first column value, i want to open as iFRAME window. if i use showlink or link formatter, its posted and redirect to the another page. how to create first column value as iframe window. Thanks in avance.. ...

jqGrid editurl value for local editing?

I have a jqGrid set up with local data. I'm not sending any data to the server until the entire form is filled out. My problem is, when a user adds/edits a row, jqGrid attempts to post the results to the server right then. I tried leaving out the "editurl" attribute from the jqGrid invocation, but this results in a "No URL is set" error...

How to implement a search in Jquery grid php

Hi all. I want to know how to implement a search in my grid with jquery. I construct the grid. The form of search display when i press the search button in the left below of grid. How to implement to post the data and to implement the search in server side. Please help me ...

jqGrid: Disable form fields when editing

I'm currently developing a web application designed for the administration of vending machines and such. I decided to use jQuery, jQuery UI and jqGrid for this project, so I can easily provide a great and highly customizable user interface. Unfortunately, the jqGrid documentation is pretty outdated and doesn't cover all the features of t...

jqGrid, datatype: function() and access to sord, sidx, etc.

I'm attempting to implement the jqGrid using a WebMethod on the page that hosts the grid. This works if I using the dataType: function() in the jqGrid: $("#mygrid").jqGrid({ ... datatype: function() { $.ajax({ url: "myPage.aspx/gridData", type: "POST", contentType: "applicat...

jqGrid IE7 hover nightmare

I've wasted too much time on this and am begging, begging, I tell you, the stackoverflow community for help! I'm a new jqGrid user, and have my grid working as I want it to, but at the moment, cannot get a row to highlight in IE 7 as the mouse is hovered over it. Our shop is currently running IE7, so changing browsers/versions is not a ...

jqGrid calling WebService (asmx) using json

I've got a jqGrid setup to post to a URL using the content type of application/json: $("#jqCategoryGrid").jqGrid({ datatype: "json", mtype: 'POST', url: "Webservices/TroubleTicketCategory.asmx/getCategoryData", ajaxGridOptions: { contentType: 'application/json; charset=utf-8' }, // **UPDATE - This is the fix,...

Problem with deleting jqGrid row data -client side-

I'm using a jQuery Grid Plug-In with local data. If I delete a selected row, the row disappears. Then when I go to the next page and back again the deleted row is back again, too! How can I delete this row permanently or what is going wrong? Here is the code: jQuery(document).ready(function(){ // jQuery main function $("...

Dynamic Columns in jqGrid

I've tried with limited success to get dynamic columns to work with jqGrid. Limited in that I can control the column names and formatting from the controller. But when I do this I can't get the data in. Do you have a small sample solution that shows the controller code for the two calls. ...

jqgrid resizable

Hi, Does anybody know how to make a jqGrid resizable? I want that sweet little handle in the down right corner. ...

jqgrid - Set the custom_value of edittype: 'custom'

The custom_value of place_id is set to whichever row I click first. Subsequent clicked rows will all use that same value, regardless of their actual value. Why? example: place_id foo_name bar_value 10 blah abc 11 blah2 fgr click the row with the place_id of 10 and click "edit" and the form that appears will...

jqGrid dynamic select fields

Hi, is there a way to modify the values of a status field in the colModel dynamically? Lets say we have a col Model with a field like: ... field ... name: "state",type: "select", editoptions: {value: "0:state0;1:state1;2:state2;3:state3;4:state4"} So I get a select field for my states with this values. But I need to dynamicaly decide...

Is there any way to fix pages to one page?

I'd like to fix the number of pages in a client side jqGrid to only one page. Is there any way to do this? Thanks for answers! ...

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...

How do I persuade JqGrid columnChooser to use the correct interface?

On the demo website for jqGrid, the columnChooser module is displayed like this: It allows you to both reorder the columns and select which columns are to be shown. Unfortunately when I enter this section of code into my application(The code that is suppose to make this appear exactly as portrayed): jQuery("#colch").jqGrid('navButto...

Problem with loading data from Java Struts2 Action into jqGrid using Java Struts2 jQuery Plugin

Hi I'm using Java at the core backend and JSP pages as GUI frontend. and also I'm using Struts2 to connect JSP Pages to my Java Core. struts2 jQuery plugin provides jquery capabilities as struts tags. see the showcase here: now I wanna load 2 very simple 1 columned rows into the grid provided by jQuery Plugin. I've got just this tag in...

jqGrid columns width seem to go off after clicking on paginator

Using jqGrid version 3.6.5 Current pager extended options: { add: false, del: false, edit: false, search: false, refresh: false, position: "left" } Current grid options: $("#tblID").jqGrid({ url: '...', datatype: datatype, datastr: GridJsonData, mtype: 'GET', ...

JqGrid Reload not working

Hi there, I'm having an issue with Jqgrid, I've got two grids on a single page and onclick on a row of the first grid needs to reload the second grid. I'm 100% sure the second grid is configured correctly is if I manually pass a hard coded id it populates correctly. Just the reload function is not working. Please could someone assist...

How do you change the size of JQGrid's Edit Dialog Box?

In a JQGrid grid, when you select a row and press the edit button, a dialog box pops up to allow you to enter information in the fields of that row. How do you specify a default height, width, and location of the dialog box that pops up? ...