I want my jqGrid to shrink and expand based on the number of rows it has. Let say it currently has 10 rows, the height of the jqGrid will shrink to 10 rows (so that no gaping empty rows is exposed).
If however there are too many rows, the height of the grid will expand to a maximum 'height' value and a scroll bar will appear.
...
I have a jqGrid with multiselect:true. In a click event of a button I try to retrieve the ids like:
var ids = $('#myGrid').jqGrid('getGridParam', 'selarrrow');
However I only get ids to be filled with something if I select the top checkbox in the header. If I do not select that one in the header but select several checkboxes in the co...
Hi,
Anybody knows on how to wrap column names in JQGrid. Please find my JSON code below
colModel: [
{ name: 'RequestID', index: 'CreditRequest.CreditRequestID', width:100, align: 'left' },.....
With reference to the above code if the size of the content exceeds I want it to be wrapped. Any thoughts or comments
...
Hi,
i have used jqgrid in the past no probs on a page load, what i would like to do is call the actual data loading from within the logic of my vb asp app (eg if x happens then load the data, if y happens do something else).
I think i can call it using the Page.ClientScript.RegisterStartupScript but i'm not sure how to build the jqgri...
I have a jqGrid with say user information which is to be edited in a form. The username is immutable but should appear in the form so the user is aware which user they are editing. The password is edit only. So in my colModel I have settings like this:
{name:'username', index:'username', width:155, editable:true, editoptions: {readonly...
I've been looking for a way to specify the cell name for sub-objects in jqGrid, however I have not reached any information in the documentation. For example, my JSON result might look like this:
{
'id': 32,
'company': 'Best Company Ever',
'subaffiliates': [
{
'id': 13,
'company': 'Second Best ...
hi,
im currently working on jqgrid using ci framework. just want to ask about the validation in jqgrid. I've seen that in jqgrid a column can be validated like this: editrules: {required:true}}, and so on...
heres my question, i want to know if its possible that if a client enters his/her desired username but it already exist. Is this...
Hi,
I'm coming from the delphi world and I want to make a master/detail interface, like Order and Products.
I already made actions to display the data using fields and a jqGrid. What I want know is how make possible to add lines, edit or remove them, but, just make the changes in db when the user confirm the changes in the master.
On del...
I am using a jqGrid with multiselect put on. That works but I have a side effect which I would like to get rid off. Whenever someone clicks on a row the checkbox also alters its checked state. I would like to leave that out.
I tried this:
onSelectRow: function(row) { return false; }
and setting
beforeSelectRow: function(rowid, e) { ...
Hi there,
I'm using the jQGrid available at http://www.trirand.com/jqgrid/jqgrid.html and I can't find a way to disable its expand/collapse button on the top right of the header. Anyone know if there's an option to do that?
I'd linke to remove the thing circled in red:
...
Is there a way to filter the data currently displayed in a jqGrid programmatically (in Javascript, not server-side)? All the search examples seem to depend on using jqGrid's own search UI, which doesn't work for me. For example, I'd like to be able to filter based on user actions elsewhere on a page.
I'm imagining something like
jQuery...
Hello,
I have a web service from which I need to return a string containing html. This html is the markup for a Select control (for use in jqGrid search filters), e.g.
<select><option id='1'> value 1 </option></select>
My WCF web service contains a method that returns this value as a string...
public string GetLeadTypeSelec...
Is there an event available which one can handle when clicking the checkbox in the header of a jqGrid? I tried the onHeaderClick but that doesn't seem to be the solution.
...
Hi guys,
I've been playing around with jqGrid but cant work out how to implement the search functionality. Ideally I'd like to use the 'Advanced Search' - I imagine that when the user submits the advanced search form, the entered data is fired to the url specificed under 'editurl'? Im guessing this URL then outputs the resultset filte...
Is it possible to navigate between rows using the Up and Down arrow keys?
For example, if the first row in the grid is selected and the user presses 'down', I would like the grid to unselect that row and select the next row down in the grid.
There is a post in the jqGrid Forums about this at http://www.trirand.com/blog/?page_id=393/he...
Hello all,
I've placed two jqgrid fully customizable tables with add, delete, ...etc buttons. Everything works perfect for the first table. But I've problems with the second table. When i click for instance to delete button, the modal confirmation popup doesn't appear at the right location. It appears outside the visible area and i can ...
How can I instruct jqGrid to directly select all checkboxes when I instantiate it? Can this be done as a parameter in the colModel somehow?
...
My use case is the following:
Having a table like:
+------------------------------+
| NOTICE | This is notice #1 |
| WARNING | This is warning #1 |
| NOTICE | This is notice #2 |
| ERROR | This is error #1 |
+------------------------------+
I'd like to have a specific background color for the whole rows depending of the valu...
This is NOT a Master/Detail question.
I am using ASP.Net MVC and trying to display several jqGrids on the same page from different data sources in a tabbed interface.
However, when the page loads each jqGrid has the layout and data for the last jqGrid that is defined on the page. Is it possible to have two unrelated jqGrids on the sam...
Hello,
In an ASP.NET MVC application using for the first time jqGrid.
I have a menu, I call "employee" from the menu in the master page like this :
<script language="javascript" type="text/javascript">
$(document).ready(function() {
$(".mnuEmployee").click(function() {
$.post("/Employee/Index", null, function(d...