jqgrid

ASP.NET MVC + jqGrid without AJAX

I have an ASP.NET MVC application which is executing a search against a products database. I want to display the results in a jqGrid using the TreeGrid module. I don't really need the grid to be AJAX-y because the data is static and it is small enough that it can all be sent to the client at once. First question: how do I set up jqGri...

How to programatically add an event handler on a JQGrid?

I have a JQGrid that's already been initialized. How can I add an event handler to it? I've tried grid.setGridParam({ onSelectRow: function(rowid, status) { alert("onSelectRow"); } }); but this doesn't do anything (no error, but no alert on select either). Update Turns out the code above actually works fine - altho...

Set up JQGrid so all rows are editable?

I'd like to make a JQGrid where all rows are editable (in-line) all the time. What would be the preferred approach to doing this? I'm thinking I'll need to just iterate through the rows and call grid.editRow(id, true) on each one; but at this point I haven't even figured out how to get access to a collection of rows in order to do that. ...

jqGrid event not activated or triggered on Row Select

Hello all, I've got a jqGrid running on my jsp page, and I love every features of this grid so far. Now I try to explore the event feature. I am trying to attach a function to onSelectRow event of the grid, but nothing works when i click on any row of the grid. Can you tell me why? I am using jqGrid 3.6. Do I need to reference any oth...

jqGrid/NHibernate/SQL: navigate to selected record

I use jqGrid to display data which is retrieved using NHibernate. jqGrid does paging for me, I just tell NHibernate to get "count" rows starting from "n". Also, I would like to highlight specific record. For example, in list of employees I'd like a specific employee (id) to be shown and pre-selected in table. The problem is that this e...

Disabling a JQGrid dropdown in an edit dialog form

Does anyone know how through either javascript or jquery know how to disable a select (dropdown) control within a Jqgrid edit dialog form? Thanks. ...

jqgrid Tooltip on page buttons

I noticed that when you hover the mouse over the reload and search buttons at the bottom of the grid, a tooltip appears indicating "reload" and "search" .. I'd like the same behaviour with the next page buttons (the left,right arrows) , last page button. Any idea how i can accomplish that without modifying any source code? I noticed that...

JQgrid and Java

Hi, can some one point to jqgrid + java web app solution or especially with populating the grid and sending the form back to server. there are several php examples but nothing on java. Help will be appreciated! ...

jqgrid cannot see the search add, edit delete buttons

My first time using jqgrid, i am able to manually load the data in the grid, however i cannot see the search/add/edit/delete buttons please help. here is the jsp code. Also have the follwoing css and the js libraries Thanks in advance. <link rel="stylesheet" type="text/css" media="screen" href="css/ui.jqgrid.css" /> <link rel="stylesh...

jqGrid search/filter data api

I've already read all available documentation and I cannot find a solution. I have a calendar outside of the grid which on click returns a date. All I need to do is filter my jqGrid based on that date. Can someone point me to the correct API method? Thanks! ...

Can I change the primary ID of a row in JQGrid without reloading?

I'm trying to implement inline inserting in a JQGrid. My approach thus far is: Use addRowData to put a blank row at the end with ID=-1 Use editGridRow to edit that row Detect on the server that this update is actually an insert because ID=-1, and return the new ID value Suprisingly, this rube goldberg scheme works pretty well. To mak...

jqGrid 2 grids on page with different theme/skin

I have a master/detail setup using jqGrid and jQuery. Is it possible to have the detail grid use a different theme/skin than the master grid? I see a setting to change the images folder, but it looks to me like grid.css would have to be the same for the entire page. Has anyone tried? Or do you have any suggestions for a workaround? ...

Apply CSS to table cells (td) in JQGrid?

Is there any way to apply a specific CSS class to all cells in a given column in a JQGrid? ...

jQuery Validation plugin with JQGrid?

Has anyone successfully used the jQuery Validation plugin with JQGrid? I realize that JQGrid has its own validation scheme, but it's limited and a little clumsy; and I'd prefer to reuse the validation UI, language, and rules that I'm using with the rest of my forms. ...

JQGrid: Dropdown for selecting items from a foreign table - DataValueField vs DataTextField

Suppose Items and ItemTypes have numeric primary keys ItemID and ItemTypeID. Each Item is assigned an ItemType. I have a JQGrid to edit Items. When not in edit mode, I would like to see the name of the ItemType, not the ItemTypeID: TYPE | TITLE -----------+-------------------- Category A | Item 1 Category A | It...

jqgrid with large local data sets

I'm looking for recommendations for jqgrid to add a large dataset from a local source. Right now, there's a simple loop: grid.clearGridData(); for(var i = 0; i < data.length; i++) { grid.addRowData(i+1, data[i]); } grid.trigger(”reloadGrid”); And on some larger data sets, this causes the browser to display the “javascript is usi...

Hide (minimize) JQgrid details on page load

Hi, probably a simple question, but how can i get a JQgrid to load minimized. When you hit the little arrow at the top right of the grid, it only shows the grid title. I would like a grid on my page to be like this as the page loads, and when the user hits the button it shows the grid data again Cheers Luke ...

In MVC app using JQGrid - how to set user data in the controller action

How do you set the userdata in the controller action. The way I'm doing it is breaking my grid. I'm trying a simple test with no luck. Here's my code which does not work. Thanks. var dataJson = new { total = page = 1, records = 10000, userdata = "{test1:thefield}", ...

jqgrid 2 grid on same row, 1x left, 1x right

Hello! How can I make on a html page, 2 jqgrids, on same row, 1x left and 1x right ? on default came one on top, one bottom. Thanks ...

CodeIgniter with Jqgrid

Hi, I've been working on jqGrid for the last 3 days. I've been able to populate the grid, but now I can't get to work the buttons/features of the jqGrid like add, edit, save or even delete a row. Any suggestion/opinions on how to do this will be really helpful. btw- I'm using codeigniter with jqGrid this is my js file $("#listFlex"...