If I understand correct you can use loadError which is executed when we have bad request and etc. This event is predefined in PHP Suito, but if you define your own it will be overwriten
The code we use is:
|
1 2 3 |
$err = "function(xhr,status, err){ try {jQuery.jgrid.info_dialog(jQuery.jgrid.errors.errcap,'<div class=\"ui-state-error\">'+ xhr.responseText +'</div>', jQuery.jgrid.edit.bClose,{buttonalign:'right'});} catch(e) { alert(xhr.responseText);} }"; $grid->setGridEvent('loadError',$err ); |
Hope this will help
Kind Regards,
Will
Guriddo Support Team
Hello Kris,
Thank you for the notes.
First of all you will need to know that the code in GitHub is not 100% tested and is possible to have some errors.
What I see is, that you have maybe get the javascript file, but not the css one, which is important.
Second your data has errors (please check the debuger console) which causes the xml file not to load correctly, which causes the export to be not run.
Kind Regards,
Will
Guriddo Support Team
Hello,
We are not sure what you understand under legitimate data.
When the session time out it send a error mesage to the browser by example.
The logic is exacley in your code which controll the session – i.e if the session tmeout what to do. This session logic can be imp[lemented in youtr grid file.
At all we are not sure what is the problem.
Kind Regards,
Will
Guriddo Support Team
Hello,
If you look at your demo example you will see that the almost all of the problems are fixed. To have auto resized edit and serch form set the width of these for auto.
We will notify you very soon when we are ready with these fixes. In the mean time you can test the changes.
Thank you.
Kind Regards,
Will
Guriddo Support Team
Hello,
I do not see any problem using your example.
By example when search on Daypart it gives us a correct result instead that this column have diffrent index.
Didi you have clear the cache?
Can you please describe the steps to reproduce the problem?
Thank you.
Kind Regards,
Will
Guriddo Support Team
Hello,
Thanks for the example. You have everthing correct. The problem was in our new code.
The problem is fixed
You can check the fixed version.
Note that it is possible to have some problems with CSS styling in both Bootstrap3 ans jQuery UI, when you get the fix from GitHub. This is temporary condition and you will need to get the CSS file too.
Kind Regards,
Will
Guriddo Support Team
Hello,
Unfortunately this is not resolved at the moment.
The problem is that we don’t know in advance the height of the future incoming row(s) to the grid. Maybe we need another implementation of the virtual scrolling, but at the moment we do not find the appropriate solution.
Kind Regards,
Will
Guriddo Support Team
Hello,
You can use hidedlg option in colModel. See colModel options
Kind Regards
Will
Guriddo Support Team
Hello,
Thank you very much for these. We will try to resolve it. Also we will try to implement Font Awesome, but let fix first the problems.
Kind Regards,
Will
Guriddo Support Team
Hello,
We have send you a e-mail.
Kind Regards,
Will
Guriddo Support Team
Hello,
You use maybe a version of Guriddo Suito PHP where this was problem exists in PHP 7.x. In PHP 5.x is fine. The problem is fixed in the upcoming release, which will be published tomorrow.
Be a sure you have active subscription to receive the update
Kind Regards,
Will
Guriddo Support Team
Which version of PHP is used?
Guriddo Support Team
Hello,
In which format do you want to export the date in PDF? I’m little confused.
The format you show us is in German date format.
Kind Regards,
Will
Guriddo Support Team
Hello,
When using PHP the export to PDF is done at the server using a external library TCPDF.
The problem here is that the date is converted to the user using JavaScript, while the export is done at the server with PHP – so the JavaScript code can not be converted to PHP one.
Instead of this there is a solution of the problem – just change the db user format when export is in action. To do so after setUserDate setUserTime do:
|
1 2 3 4 5 6 |
$grid->setUserDate("Y-m-d"); $grid->setUserTime("Y-m-d"); if($grid->oper == 'pdf') { $grid->setUserDate("d.m.Y"); $grid->setUserTime("d.m.Y"); } |
Kind Regards,
Will
Guriddo Support Team
Hello,
You can try with these settings:
|
1 2 3 4 5 6 7 8 9 10 11 12 13 |
$grid->setUserDate("Y-m-d"); $grid->setUserTime("Y-m-d"); $grid->datearray = array("terminVon"); $grid->setColProperty('terminID', array( 'label' => 'ID', 'width' => 40, "colmenu" => false, 'editoptions' => ['readonly' => true], 'formatter'=>'date', "formatoptions"=>array("srcformat"=>"Y-m-d","newformat"=>"d.m.Y"), "unformat"=>"js:function(v){ return $.jgrid.parseDate.call(this, 'd.m.Y', v, 'Y-m-d') ; }", )); |
And you should ser reloadAfterSubmit to true in add and edit form.
Kind Regards,
Will
Guriddo Support Team
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top