jqgrid

JQGrid edit form dropdown populated from database

My edit form requires a dropdown to be populated by a database call. I realize I must set the dataurl parm in the colModel. Does anyone have an example using a linq to sql call which returns the data in the format the jqgrid is looking for. Thanks. ...

how to pass java beans to jsp page for jqQrid to display using json?

we are trying to use jqGrid with our jsp front end and java back end. this page is displaying a grid of contacts : jQuery(document).ready(function(){ jQuery("#list").jqGrid({ datatype: 'json', url:'gridContactDrv.jsp', mtype: 'GET', height:300, width:600, colNames:['First Name','Last Name', 'Company', 'Prima...

How to integrate JQGrid with Django/Python

Anybody out there who have tried to use JQGrid a Jquery plugin with django? Please share your knowledge/code samples Gath ...

ASP.Net MVC partial views and jqGrid

I get the following error message when rendering a partial view with a jGrid on. "Microsoft JScript runtime error: '$.jgrid.defaults' is null or not an object" I have included the relevant .js files. I am concerned about the following line in jquery.jqGrid.js var pathtojsfiles = "/Scripts/"; All my .js files are under the scripts fo...

JQGrid in MVC app Add form error on submit click

Hi - I am trying to use the JQGrid plugin and have run into an issue I can't seem to get around. First I'm using the latest version on the grid (3.5.3) in an ASP.NET MVC app. Almost everything is working great - loads my data, edit form fires the correct Controller method. My issue is with the Add record Form. The form displays fine but ...

jqGrid stuck on loading???

I am trying to use the JQuery plugin jqGrid with an asp .net mvc app. I am passing the grid a JSON object in the following format as in the jqGrid documentation: { "total":1, "page":1, "records":10, "rows": [{ "i":1,"cell":["foo","bar"]}, {"i":2,"cell":["foo1","barr"]}, {"i":3,"cell":["fo...

MultiSearch with JqGrid and ASP.NET MVC

I'd like to use the multisearch facility from JqGrid within an ASP.NET MVC application. When setting up the grid you set a URL that becomes the action method on a controller. But how do I find out what the parameters should be defined for the action method. I've seen in another post that working out what the parameters should be is the h...

jqGrid with dynamic colModel ?

I have to create a data table simmiliar to the http://www.chartle.net/ have. The most importang feature is : Row can be added/remove dynamically (done) Column can be added/remove dynamically (how can i do this ?) The changed colModel can be saved in database for feature modification .. Is this possible ? ...

jqgrid not executing when bound to click event

I'm not sure why this isn't working but probably because I'm not very familiar with javascript. The following is initialised $('#categoryList').find('.sideboxEntry').live("click", function() { productBindToGrid(); }); productBindToGrid(); function productBindToGrid(filterBy) { $("#productGridView").jqGrid(); } productBindToG...

How to set checkbox on JQGrid Add Form to checked.

I'm using the Add Form to add records to my JQGrid. One of the fields is a checkbox. Does anyone know how to have the checkbox to be defaulted to checked when the form displays. I thought it would use the onInitializeForm event and the setCell method but I'm having no luck. Thanks. ...

JQuery jqGrid vertical spacing issue in IE

I have been developing an app to use jQuery's jqGrid plugin, and I thought I had it all wrapped up until I tried to view the grid in IE. In IE, the grid appears with a much larger height in the .ui-jqgrid-view div, but the data itself stays at a smaller size and displays at the bottom of the container div (.ui-jqgrid-view). I need to g...

Programmatically select all rows in a jqGrid?

What is the best way to programmatically select all rows in a jqGrid that is set to multiselect? The code could loop through all of the rows one-at-a-time and select each one, but then the checkbox in the grid header is not checked. I was thinking about just triggering the header row checkbox's clicked event, but that would make assump...

JQGrid Search form behind the transparent modal overlay window

This has got to be a stupid mistake but for the life of me I can't figure it out. I am trying to use the search feature from the navigator of jqgrid. When I click the search icon the form displays above the grid but then the entire area (grid and search form above it) are covered by a transparent search modal window. I am stuck at this p...

jqGrid - How to remove the page selection on the pager but keep the buttons?

I want to remove the paging buttons on the grid, but I want to keep the add, edit, refresh, etc buttons on the bottom left. I don't want the pager there because I will be displaying all records in this particular grid implementation. I want to keep what is in GREEN but remove what is in RED: Currently, my solution is to empty out the...

Is it possible to make JqGrid send a JSON QueryString to server ?

Is it possible to tell jqGrid to send all search options in JSON format ? Hence I won't have to reformat it on the backend side. ...

how to disable a jqgrid select list (dropdown) on the edit form

This is strange and any alternative method to what I want to accomplish is welcome. My app uses the jqgrid 3.5.3 and I need to disable a select list on my edit form. When I do so using the code displayed below it breaks the edit form - meaning I can not cancel or submit it. Thanks. This code is in the edit options array of the navGrid me...

Problem with JQuery datepicker inside jqGrid with showOn : 'button'

Hi I use jqGrid and I want to integrate a JQuery datePicker inside. It worked well until I add the showOn: 'button'. With that, the edit doesn't work anymore. I really want to popup the picker only on a button click because date is the 1st cell of my row and I use inline edit so every row select shows the datepicker :-(. If I use the sa...

jqgrid pass value throught url for ASP.NET MVC Controller

I have a jqGrid script like that: jQuery(document).ready(function() { var startDate = $("#startDate").Val(); jQuery("#sandgrid").jqGrid({ url: "/Deposit/Search?startDate='" + startDate + "'", datatype: 'json', mtype: 'GET', height: 255, width: 700, colNames: ['Index', 'Name', 'Code'], colModel: [ {...

Get jqgrid DOM ID from event triggers

I'm extending jqgrid default options: $.extend( $.jgrid.defaults, { datatype: "json", jsonReader: { root: "rows", page: "page", total: "total", records: "records", repeatitems: false, cell: "cell", id: "id" }, ...

How to count the number of rows in a jqGrid?

How do I count the number of rows in a jqGrid? To clarify, there is not much data involved so the grid is pulling all of its data back from the server in a single query, instead of using pagination. ...