jqgrid

JQGrid: Loading data into the footer row

Are there any examples for loading data into the footer? I can't find any or I'm being blocked at work. Thanks in advance... ...

jqGrid multi-checkbox custom edittype solution

For those of you trying to understand jqGrid custom edit types ... I created a multi-checkbox form element, and thought I'd share. This was built using version 3.6.4. If anyone has a more efficient solution, please pass it on. Within the colModel, the appropriate edit fields look like this: edittype:'custom' editoptions:{ custom_eleme...

jqgrid not updating data on reload

I have a jqgrid with data loading from an xml stream (handled by django 1.1.1): jQuery(document).ready(function(){ jQuery("#list").jqGrid({ url:'/downtime/list_xml/', datatype: 'xml', mtype: 'GET', postData:{site:1,date_start:document.getElementById('datepicker_start').value,date_end:document.getElementById('datepicker...

Callback for When jqGrid Finishes Reloading?

Hi, I am using the jqGrid plug-in and at one point I need to refresh the grid and set the selected row to match the record that I am showing in detail on another section of the page. I have the following code but it does not work: $("#AllActions").trigger("reloadGrid").setSelection(selectedRow); The selectedRow parameter comes from an...

JqGrid Search with multiple text boxes for field

Hello there, I am wondering if it is possible with JqGrid advanced search to display multiple text boxes for some of the fields I want to search on. For example, if I have a 'Phone Number' field, I want to be able to visualize 2 boxes, one for area code and the other for the rest of the phone number. Then after pressing 'Find' I want to...

jqGrid - edit function never getting called

I'm having a problem with JQGrid using ASP.NET MVC. I'm trying to follow this example (after you go to that link, over on the left side of the page please click Live Data Manipulation, then Edit Row), but my edit function is never getting called (i.e. it's never getting into the $("#bedata").click(function(). Does anyone know what could ...

jqGrid jQuery UI button wrapping in toolbar

I have a jQuery UI Button that I'm placing in a jqGrid toolbar but the contents of the button are wrapping. I've tried to prevent the wrapping by using CSS white-space Property to no avail. Here's a snapshot of what's happening: Here are two code snippets of my attempt to fix the problem: $("#t_imageList").css("white-space", "n...

jqGrid (Delete row) - How to send additional POST data?

Hi experts, I'm having problem with jqGrid delete mechanism as it only send "oper" and "id" parameters in form of POST data (id is the primary key of the table). The problem is, I need to delete a row based on the id and another column value, let's say user_id. How to add this user_id to the POST data? I can summarize the issue as the...

jqgrid's delGridRow not working

Hi fellow programmer I want to have a button in each row to delete the corresponding row. So I used the samples in the demo page to try to achieve this. It is working for edit row, but I also want to have a delete button. Here is my code jQuery("#detFlex1").jqGrid({ url: '<%= Html.Encode(ViewData["module"])%>/GetDetailList1', ...

how to clear jqgrid when i click button in asp.net mvc

hi ,i am new to jqgrid , i'm placing the code what i did .my question is that when i click html button i need to refresh the grid value with new values?how i pass paramateres to controller? thanks in advance <asp:Content ID="Content3" ContentPlaceHolderID="HeadContent" runat="server"> <link rel="stylesheet" type="text/css" href="/s...

jquery with ASP.NET MVC - calling ajax enabled web service

This is a bit of a continuation of a previous question. Now I'm trying to make a call to an AJAX enabled web service which I have defined within the ASP.NET MVC application (i.e. the MovieService.svc). But the service is never being called in my getMovies javascript function. This same technique of calling the AJAX web service works o...

Get parent id from node expand event in jqGrid (tree grid)

I'm using a tree grid based on the jQuery plugin jqGrid where I need to do some operations on all child nodes when a user expand a node. My problem is getting the parent's node id. What I've been trying so far is using the loadComplete option which I know triggers on node expand and by inspecting the post parameters in firebug I see no...

how to reload jqgrid in asp.net mvc when i change dropdownlist

what is wrong in this code? when i change drop down list,the grid takes old value of ddl only, not taken newely selected values why? <%--<asp:Content ID="Content2script" ContentPlaceHolderID="HeadScript" runat="server"> <script type="text/javascript"> $(function() { $("#StateId").change(function() { $('#TheForm'...

Reload Grid not working for mutiple jqgrid

I am using jqgrid.My page has three tabs and each tab contains a different grid.All grids have different ids.The content of tabs is fetched via AJAX request lazily.Now after all three grids are rendered and i try to reload grid via function jQuery("#myOffersTable").trigger('reloadGrid'); Only the grid which loaded last reloads and i...

Preventing the opening of a form on a add button click

Hey guys, Did you guys know how to prevent the open of a Form when I click on a add button? Maybe using beforeShowForm? function(formid) { if(jQuery('#gridap').getGridParam('selrow')) { idgridap=jQuery('#gridap').getGridParam('selrow'); jQuery('#FK_numerocontrato_ap',formid).val(idgridap).attr('readonly','rea...

Jquery JQGrid breaks when contentType=application/json?

I've had to use $.ajaxSetup() to globally change the contentType to application/json $.ajaxSetup({ contentType: "application/json; charset=utf-8" }); (See this question for why I had to use application/json http://stackoverflow.com/questions/2792603/aspnet-mvc-why-is-modelstate-isvalid-false-the-x-field-is-required-when-that) But t...

jqGrid filtering on the client-side using "filterToolbar"

Hi guys, I have to add filtering to a jqGrid that is completely managed on the client side (data is only loaded once from the server). I need to use filterToolbar in order to filter the grid data, but couldn't find info if there is a default search mechanism on the client side. Is a server-side search the only way to do this? Thanks, ...

Display nice error message when there is something wrong after ajax request jqgrid

Hello, I delete rows with this function: function deleteRow(){ rows = jQuery("#category_grid").getGridParam('selarrrow'); if( rows.length>0){ jQuery('#category_grid').delGridRow(rows,{ msg:'Verwijderen geselecteerde rijen?' }); }else{ alert("Selecteer eerst een rij om te verwijderen!"); } } but when it's fails in my ...

jqGrid drag and drop Receive event

I am using jqgrid drag and drop , i have two tables TABLE A and TABLE B, i am draging one row from TABLE A and Droping into TABLE B, i Want to capture new row id and data received in table, is there any receive event in jqGrid ? ...

Jqgrid in a dialog window is not showing on the second calling

I have this script below that will call my browse window; var $dialog = $('<div></div>') .load('scripts/browsecharges.jsp') .dialog({ width: 800, height: 500, modal: false, title: 'Browse Charges', buttons: { Ok: function() { $(this).dialog('destroy'); ...