jqgrid

jqGrid Error in IE7

I am using jqgrid, it is currently working fine in FF, IE8, Chrome, Safari. But in IE7 I get this error: 'this.rows.0.cells' is null or not an object jquery.jqGrid.min.js Code: 0 Line: 122 Char: 278 Has anyone come accross this before? Is there a known fix? update Here is my PHP code: $qry = 'SELECT stock_num,...

how can reload the new data in the grid on clicking the buton?

The scenario is like this ...say i have a grid and on clicking that button it will send that data to the grid and it will refresh automatically with new data display in the data... $("#wics").click( function(){ var grid = jQuery("#list10"); var ids = grid.jqGrid('getGridParam','selarrrow'); if (ids.length>0) { var na...

Send Ajax request from JqGrid ShowLink click

I need to load some dynamic html when a user click on a link in a jqGrid. here is my definition function loadUserAdministrationList() { jQuery("#userlist").jqGrid({ url: '/Administration/GetData/', datatype: 'json', mtype: 'GET', colNames: ['Username', 'Prénom', 'Nom', 'Courriel'], colModel:...

show horizontal scroll bar in jqgrid

Hi, Please see the link below, http://www.logicatrix.com/example/records.html In this table there are many columns included , so what i want is to get fit the whole table into drawn gray border i.e. div element with class name bms-dashboard-body. with a horizontal scroll bar just like an excel sheet has on the right bottom corner a sm...

jqGrid: How to Lock and Unlock the Grid?

I am working with the jqGrid. Quick Summary: In summary I want to Lock (make no rows selectable) and also Unlock (make rows selectable). Both of these tasks must be done on the client side. More Detail: Basically, once a user selects a row for editing, I want to Lock out the grid so the user cannot select another row until he/she ...

problem loading data in details jqGrid from master grid?

When I am making a call first time it shows data in my details grid from master grid but when selecting other row its not populating the new data in the details grid.. jQuery("#list10").jqGrid({ sortable: true, url: '/cpsb/unprocessedOrders.do?method=getInitialUnprocessedList', datatype: 'json', colNames: ['Order', 'Load...

How do you change the column sort icons for a jqgrid?

I need to change the default sort icons for the jqgrid. Currently it has an up and down arrow shown for each column. How can I replace it with a single icon that changes as it is clicked on? Basically, the icon should toggle between ascending, descending and unsorted. Solution Using Oleg's answer I changed the default double arrow i...

Pagination not working for the json in JqGrid

My pagination is not working when I removed the loadonce:true ...but if I use loadonce:true than my grid is not working. Any idea how can I get my pagination work again. update: this is extension to http://stackoverflow.com/questions/3610173/problem-loading-data-in-details-jqgrid-from-master-grid ...

jqGrid tableToGrid function - remove multiselect

I'm trying to use the tableToGrid functionality with jqGrid. My HTML table has a column with checkboxes because of which the tabletoGrid is automatically converting to a "multiselect" grid. How can I get the resulting grid to be a regular grid with my checkbox column and not be a multiselect grid? ...

jqGrid how to override the "view" m

I have a jqGrid where the "View" icon is enabled (view:true), so that a user picks a row in the grid, and then clicks the icon in the navbar to view the row. Thing is, what I really want to have happen is a redirect to a different URL, with the rowid included as a parameter in the URL (e.g. foo.htm?rowid=5) I went over the docs, and s...

jqGrid and JSON reader

I'm fairly new to jQuery and just started working with jqGrid. I've looked over the jqGrid docs in order to figure out how to display some data I'm receiving back in JSON format within my grid to no avail. When I create the grid, it displays with the correct headers, pager info, etc and via Firebug and I can see the request and respons...

jqGrid - hide column in form edit but visible in grid

I know jqGrid can hide the column in grid but visiable in edit form. Is there options for the other way around? In other words, does jqGrid have the option to hide the columns during form editing but visible in grid? One useful scenario would be have a concatenated column composed of more than one columns, such as lastname + ' ' + firs...

Using jqGrid with sortable columns... paging then results in a data/column mismatch.

I have a very vanilla jqGrid with "sortable: true" (which allows you to drag/drop to reorder the columns). There are 8 columns, none are hidden, none have any properties set other than name, index, and width. The column drag/drop works initially. I drag a column header, and drop it in a new location. The header and the data in the colum...

How do you use a JSON string or JSON object with jqGrid?

My jqGrid is work when my JSON data is in a static file, but if I copy the data to a var and then try to load the var into the jqGrid's url it doesn't show. Can you pass a string into jqGrid e.g. This works: function GetJSON() { var jsonFile = "EntityWithChildren.json"; return jsonFile;//returning a file works fine. } $("#jso...

jqGrid ASP .Net Permanent 'Add new row'

I've been using jqGrid ASP .Net and really happy with it but I required a permanent blank new row at the top of the grid which allows a user to enter a new row on the fly rather than using the add row dialog. From looking at the trirand forums, this is currently not supported 'out of the box'. I have seen this forum post http://www.tri...

How can I add multi-column sorting to jqgrid?

I can add single column sorting to jqgrid, no problem. How can I add multi-column sorting to jqgrid? That is, sort by column 1, then sort by column 2, the final sort order is: column 2, column 1 ...

How do i implement search on third level using containable behavior

Hi, I have developed a cake php application. In this there are tables like students,placements,batches,companies In placements table there is student_id,company_id and in students table there is batch_id column. In placements index page i have applied jq grid. Here is the screen shot. I want to give searching on student,company and...

loading a JqGrid on selecting date..

I have a datepicker and on selecting the date and clicking button it should display the grid beneath it ... my approach: <script type="text/javascript"> //<![CDATA[ $(document).ready(function(){ $("#datepicker").datepicker({ showOn:'button', buttonImage: '../../image/icon_cal.png', button...

problem with wrapping jqGrid column headers on IE

Hi I'm using jqGrid in my pages, I modified the ui.jqgrid.css file to wrap the column headers like this: .ui-jqgrid tr.jqgrow td { white-space: normal !important; } .ui-th-column,.ui-jqgrid .ui-jqgrid-htable th.ui-th-column{ white-space:normal; } it works fine in all of the browsers but IE! I tried IE7 and IE8 and the probl...

including jquery menu and jqGrid on the page

I have a navigation menu which I need to include on all my pages....through jsp I just include the that menu <div id="header"><jsp:include page="../menu_v1.jsp"/></div> but problem is that my menu contains <html><head></head><body></body></html> Now when I want to use my jqGrid which is define on my new page inside <script></script>i...