Not sure what you want to do but you can check the examples page to see what could be done with jqGrid (http://trirand.com/jqgrid/jqgrid.html)
You can find some marvelous plugin for JQuery in the JQuery web page(http://plugins.jquery.com/)
For my current web app I use the ddaccordion of the Dynamic Drive (http://www.dynamicdrive.com/dynamicindex17/ddaccordionmenu.htm) It is very easy to use.
HTH
Robert, check the pathtojsfiles var in your jQuery.jqGrid.js file
According the docs, you only need to give your HTML table an id or a “selector (a class attribute), say:
|
1 |
<span class="elements"><table</span> <span class="attributes">class=</span><span class="codestring">"mytable"</span>> (or <span class="elements"><table</span> <span class="attributes">id=</span><span class="codestring">"mytable"</span>>)<br /><br />I think you have to write :<br /><br />$(document).ready( function() {<br /> tableToGrid("#mytable");<br />});<br /><br />HTH<br /><br /> |
1) Using the loadComplete event. Something like:
gridComplete : function() {
It seems that row selecting event occurs first than Click on the link and it makes sense because you have to select the row first to populate the selrow property.
Maybe doing some hacking in the selectRow event could do what you want to do…
HTH
Please, add the beforeSubmit event as above and put the id getting the value from the row selected.
If this field is your PK, you know it will be empty if you are adding a new record, otherwise it shouble have the value from the selected row
The problem is receiving the parameter or building response for jqGrid ?
You can use the beforeSubmit event for the action you are executing and add any value to the editData
Do you check if the parameter are been passed ?
Sorry It
I do not test but it could be:
$('#dsEdit').ajaxify({
When you update a database jqGrid sends the parameter “oper” when (you guess) the operation to be done. “oper” takes the following value,”add” – Add a new record,”edit” Update a exsiting record and “del” delete a record.
You can also add “custom” buttons and assign any string to be recognized by your server side code as a valid operation.
Moreover, Adds any data you want but typically the values for the fields in you editing form…
HTH
I did :
How can I know if I loading the grid first time or loading the grid by using reloadGrid ?
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top