jqgrid

How to make an entire jqGrid disabled/readonly

How can I make an entire jqGrid disabled/readonly? I have a page with a logical "edit section" which I show when the user selects something to edit, and hide when the user is done editing (save or cancel). While the edit section is shown, I disable several other elements on the page. I would like to disable their ability to click in t...

Question on JqGrid paging.

Hi, I would like not to lose the paging and the sort parameters when I leave a page with a grid and I come back to this page. Is it possible to get the page, rowNum, sortname, sortorder params (I think with getGridParam), put them in the URL scope, go to another page, and get those params back through the URL scope and give them in the...

JQGrid Inline Editing : Filter subcategory dropdown list based on another category dropdown

hi, I have a category and a subcategory column in a Jqgrid. I have enabled inline editing, both category and subcategory are dropdownlists columns (edittype:'select'). I need to filter the subcategory list based on the selected category. I wonder how can I acheive this functionlity? I tried the below event but its not working for me a...

JQGrid Function after inline edit

Hi, I'm sure i'm just not looking in the right place...again... but i can't seem to find the function that gets called after the editurl:"url" has completed. I have: colModel: [ { name: 'Email', index: 'Email', editable: true }, { name: 'ReferenceEmail', index: 'ReferenceEmail',hidden: true , ed...

jqGrid giving exception when json is attempted to be loaded

I have the following html in my site: <link type="text/css" href="/Styles/ui-lightness/jquery-ui-1.8.2.custom.css" rel="Stylesheet" /> <link type="text/css" href="/Styles/ui.jqgrid.css" rel="Stylesheet" /> <script type="text/javascript" src="/Scripts/jquery-1.4.2.min.js" ></script> <script type="text/javascript" src="/Scripts/jquery-ui-...

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

Disable "reload grid" button in nav

Does anyone know how to disable the "reload grid" button (a.k.a. the "refresh" button) in the grid navigation? I'd like to remove the button circled in red above. Seems pretty simple but I'm just not finding the necessary code to support the request. ...

JQGrid setRowData After inline edit

Hello all, I'm having a problem updating a row after an inline edit. My ColModel is: colModel: [ { name: 'Email', index: 'Email', editable: true }, { name: 'ReferenceEmail', index: 'ReferenceEmail', editable: true }, // hidden: true, editable: true, editrules: { edithidden: true} { name: 'Title', index: 'Title', edita...

Losing edited cell data after paging

Hi, I'm building a completely "client side" grid however if I enable inline editing, the changes I make are lost if I change the grid page. Hopefully someone can point out what I'm missing The Grid setup is shown below along with the function I call to fill it with test data: var myGrid; var lastgridsel; jQuery(document).ready(functi...

jqGrid column not aligned with column headers

I'm using jqGrid 3.6.5 and IE8 When setting shrinkToFit: false the columns are clearly not aligned with the column headers. If I turn on shrinkToFit: true the problem disappears, but I lose the absolute sizing of the columns. Resizing the columns (in code, or dynamically by the user) does not affect this problem. See image for illustra...

How call a function into event search submit button - jQGrid modal window?

I need to use the option to search with custom php code but I could not put code because I've tried both and neither is as following ...

jqgrid : drag and drop multiple rows

How to drag and drop multiple rows using jqgrid i.e Can i drag more than one row? ...

jqGrid: replace single click with double click to enter cell edit mode

Using cell edit mode in jqGrid, the default behaviour is to enter edit mode on a cell whenever that cell is clicked or if that cell is selected and the enter key is pressed. Is there a way to change this behaviour so that a single click does not place it in edit mode but a double click does? Entering into edit mode on enter is fine. ...

hide column (header and rows) post jqGrid render

Is it possible to hide a specific column in jqGrid after it has been setup, while ensuring all alignments are correct (table width and header/data alignment) for IE/FF. The data can't be removed at back-end w/o major refactoring. I am reiterating through a specific column and checking if it is all empty, and if so, I tried .remove() on...

jQuery Grid for MVC data not coming from controller to view

I just downloaded jQuery Grid for ASP.NET MVC from codeplex I did run the project, all seams to be all right, in Sql Profiler i can see that sql queries coming to database. Then in debugger i can see that data comes in LinqToSql query fine: var model = from entity in repository.Index().OrderBy(sidx + " " + sord) select new { ...

jqGrid - how to save a row cell by clicking on a link

I have a grid with some hidden datas and also I have some custom links on each row (eg: "publish/unpublish", "edit", "delete"). When I click on the link "publish/unpublish" on each row, the row data should get updated automatically and the values should get posted to the server. After successful submit the grid row should get refreshed a...

how can i change the background color of a cell in a jqgrid custom formatter

i can chance the text color by doing this in jqgrid custom formatter: function YNFormatter(cellvalue, options, rowObject) { var color = (cellvalue == "Y") ? "green" : "red"; var cellHtml = "<span style='color:" + color + "' originalValue='" + cellvalue + "'>" + cellvalue + "</span>"; return c...

Does jqgrid support exporting to excel " out of the box" or do i need to write some server side code?

on this page in the release notes of jqgrid 3.7.2, i see: Fix export url in export to excel method but i dont see any other documention about jqgrid natively supporting export to excel. I have an asp.net mvc site and i have always done this on the server side to generate an excel file. Is this now possible out of the box from jqgrid....

how to programatically search a jqgrid

I have a jqGrid with lots of data loaded in it. I want to provide three buttons. Clicking on each button the grid will be prompt user to enter a number and based on that input it will search the grid. Please tell me if jqGrid supports this. ...

jqgrid: how to keep bottom toolbar visible when grid is rolled up?

My jqgrid has a bottom toolbar and changes height depending on the user-agent: $('#titles-table').jqGrid( { . . . height: function(){ return (navigator.userAgent.match(/iPad/i) !=null) ? "100%" : "222px";}(), toolbar : [true,"bottom"] } The grid displays a list of titles which is sometimes very long. Therefore, the grid wil...