Hello,
I preffer you to read carefully the options for the add dialog. Especially you can pay attention on the followig options:
closeAfterAdd and clearAfterAdd.
http://www.trirand.com/jqgridwiki/doku.php?id=wiki:form_editing#editgridrow
Best
Hello,
Welcome.
This is a most common problem. Let me explain.
You bind a click event to element that has a class box, but to work this the element should be present into the DOM.
When we construct a grid – first you bind the click to such element, but these elements are not inserted into the dom snce of the ajax request.
You have a lot of solutions.
1. You can use the jQuery live method. More you can find in the jQuery site.
2. You can use the gridComplete event to bind the click event to such elements.
3. You can use afterInsertRow event ( I do not recommend this) to do the same.
More You can find here:
http://www.trirand.com/jqgridwiki/doku.php?id=wiki:events
Best Regards
Tony
Hello,
First of all, thanks for remind us that we should update the docs. It will be done with the next release.
Also the purpose of custom element is to work only with single input element, and not for multiple.
If you encloase the input element in div and etc you should get and set the value of the input tag which is enclosed in div.
So your first assumption is not correct, since we pass the entrie element to this function.
The 3 parameters in custom_value function are valid only in form editing – just to clarify.
Best Regards
Tony
Hello,
For me will be quiete easy if you explain me what you want to do.
Best Regards
Tony
Hello,
Create initially the grid with datatype local.
On button click use setGridParam with datatype json or xml and trigger the grid.
Regards
Tony
Hello,
The option is added ( closeAfterReset ) and it is available in GitHub
Regards
Tony
Hello,
You can use GridUnload method to destroy the grid an create it again with the new columns smething like
var colmodel1 = …
var colmodel2 = …
$(“#myselect”).change(function(){
if($(this).val() == “1″) {
$(“#mygrid”).GridUnload();
$(“#mygrid”).jqGrid({… colModel: colmodel1,…})
} else if( …) {
$(“#mygrid”).GridUnload();
$(“#mygrid”).jqGrid({… colModel: colmodel2,…})
}
});
Regards
Tony
Hello,
If you upgrade (just replace grid.setcolumns.js ) do you have the same problem? There was a lot of fixes in this module.
Regards
Tony
Hello,
IMHO your problem is in the response. Maybe you missed some tags like page, total and etc.
http://www.trirand.com/jqgridwiki/doku.php?id=wiki:retrieving_data
Regards
Tony
Hello,
Also is this url 'save_alert_gp_parm.html' valid. If you do not wnat to post to server when inline edit is used you can set into the url 'clientArray'.
See docs.
Regards
Tony
Hello,
This is not possible. Tab is possible only whe you edit a field.
Also since there are no other input controls you can tab ony to the checkboxes.
(By defauilt tab works only on input controls and a tags)
Regards
Tony
Hello,
The problem appear with this definition
In order to resolve do it so
$(“#testGrid”).empty().jqGrid({
…
});
Regards
Tony
Hello,
Set the following parameter
height: 'auto',
or
scrollOffset : 0,
Look at grid documentation
Regards
Tony
Hello,
Any example code on this?
Also if you use getGridParam to obtain the selected rows you should do it this way
var myselection = $.extend([],$(“#mygrid”).jqGrid('getGridParam','selarrrow'));
Search the forum there is a such post
Regards
Tony
Hello,
I'm not sure that I understand.
What you mean with
jqgrd will grab new product id from a form which will be submitted to grid
I think that where you grab the product id you should fill automatically the fields that should not be filled from the user.
Best Regards
Tony
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top