Hello,
One possible solution is to use setLabel method. Look into the docs here
Will
Guriddo Support Team
Hello,
Direct this is not supported, but it can be simulated. We will use the property oper in case a data is added/updated/deleted. Note the automatic disabling at end of if
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
.... // When a add is performed if($grid->oper == 'add') $data = jqGridUtils::Strip($_POST); // use insert data $ret = $grid->insert( $data ); if($ret) { // success // do something with your own function } else { // do something with your own function } // disable automatic add $grid->add = false; } // the same for update if($grid->oper == 'edit') $data = jqGridUtils::Strip($_POST); // Make the conversion manually using jqGrid parse date $ret = $grid->update( $data ); if($ret) { // success // do something with your own function } else { // do something with your own function } // disable automatic add $grid->edit = false; } // The same for the del oper |
Kind Regards,
WIll
Guriddo Support Team
Hello,
Yes we can do this. The loading dialog has a class loading. Additionally to this another classes are loaded from css jqGrid definitions. StyleUI object for the CSS frmework used. The item is loadingBox in base parent. With other words you must remove these calsses and your own by example like this:
|
1 2 3 4 5 6 7 8 9 |
<style> .ui-jqgrid .loading { background:#fff url('https://media.giphy.com/media/3oEjI6SIIHBdRxXI40/giphy.gif') no-repeat 50% 50%; display: none; height: 16px; width: 16px; } </style> |
The above code shoild be loaded after jqgrid css file.
Kind Regards,
Will
Guriddo Support Team
Hello,
Thank you for the feedback and let us know where the problem was.
Have a nice weekends
Kind Regards,
Will
Guriddo Support Team
Hello,
Can you please post the full jqGrid setup and some demo data from json.data file.
Thank you.
Kind Regards,
Will
Guriddo Support Team
Hello,
You can see in the same demo, that showlink work with target=”_blank”. I have changed the demo. Please look here
Kind Regards,
Will
Guriddo Support Team
Hello,
You can use the resizeColumn method, which is described into the documentation here
Kind Regards,
Will
Guriddo Support Team
Hello,
Not sure what you change and why.
Actually the formatoptions target: “_blank” should work and you do not need to do fix anything.
I think that your problem is in the code which modify the link i.e
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
myevent = <<<ONLOAD function(form_omsi) { var ids = $(this).jqGrid(âgetDataIDsâ); for (i=1;i<4;i++) { var myGrid = $("#fic_"+i); for (var i = 0, idCount = ids.length; i < idCount; i++) { $("#"+ids+" a",myGrid[0]).click(function(e) { var hash=e.currentTarget.hash;// string like "#?id=0" if (hash.substring(0,5) === '#?id=') { var id = hash.substring(5,hash.length); var text = this.textContent || this.innerText; location.href="$location/fupload/"+text; } e.preventDefault(); }); } } } |
This demo show tha this option work correct
Kind Regards,
Will
Guriddo Support Team
Hello,
Where is this event executed and why?
I think that using custom formatter will be more effective.
See here Javascript example
See PHP example here
Kind Regards,
Will
Guriddo Support Team
Hello,
If you use onSelectRow you can set the focus field dynamically
|
1 2 3 4 5 6 7 8 9 10 11 |
("#grid").jqGrid({ ... onSelectRow : function( id, status , event) { ... var ic = $.jgrid.getCellIndex(event.target); $(this).jqGrid('editRow',id, {..., focusField : ic,...} ); ... } ... }); |
You will need to check if the clicked column is editable and perform logic in case if it is not.
Kind Regards,
Will
Guriddo Support Team
Hello,
You can define a global varible and when validation error occur set this gloab variable to true in validationCell and do not allow movement usin isEditableCell. Also afterRestoreCell should reset this variable. Do not forget to focus the field in validation call. Below simple test code which works at our end.
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
var tab = false; ..... jqGrid({ ... isCellEditable : function (name, irow, icol) { if(!tab) { return true; } return false; }, validationCell : function( a, b,c, d){ tab = true; alert("error"); setTimeout(function(){ a.focus(); },100); }, afterRestoreCell : function() { tab = false; }, ... }); |
Kind Regards,
Will
Guriddo Support Team
Hello,
Add onClose function to remove the delete modal form. The id of the modal forem is combination from delmod plus the id of the grid. in Your case this can look like this:`
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
function deleteRow() { var gr = mygrid.jqGrid('getGridParam','selrow'); if(gr != null) { var rdata = mygrid.jqGrid('delGridRow',gr,{ onClose : function(){ setTimeout(function(){ $("#delmodjqgrid").remove(); }, 1000); }, msg : " Your dynamic text" ... }); ..... |
We also have added a option removemodal (available in next release) which will automatically remove the form
Kind Regards,
Will
Guriddo Support Team
Hello,
Thank you for the test case.
There are mainly two problems.
The first one is related to your code (bug) We have fixed it.
The second is related in your code. In order to allow correct saving you must include your id field clef in the sql like this:
|
1 2 3 |
... $form_formulaire->SelectCommand = 'SELECT clef, bouton_radio FROM test WHERE clef = 10'; ... |
Please write to the support at guriddo dot net in order to get the fixed code.
Kind Regards,
Will
Guriddo Support Team
Hello,
We can not reproduce the problem. It seems to me you get the values manually and put it with your own custom command, which maybe causes the problem.
Here is demo where the values of the radio button are posted and saved to the server
Kind Regards,
Will
Guriddo Support Team
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top