Hello,
Thank you for the replay.
We have updated our demo site to the latest version, so you can see that the problem is fixed.
Could you please contact us at: support at guriddo.net in order to get instructions.
Thank you.
Kind Regards,
Will
Guriddo Support Team
Hello,
Which version of jqGrid is used?
Can you please point us to a example which demonstrates the problem?
Without example for us is very difficult to reproduce every user problem.
We are unable to reproduce these problems in version 5.5.4 – some of these problems are fixed in our last version see here
Thank you.
Kind Regards,
Will
Guriddo Support Team
Hello,
Your problem is in the code
|
1 2 |
... $grid->queryGrid(); |
You should execute either
$grid->queryGrid();
or
$grid->renderGrid(…);
but you execute both.
With other words comment $grid->queryGrid(); command
Try to understand every command that is executed.
MakingĀ copy/paste is not a good practices.
The trial demo is updated and you can get it from our download section
Kind Regards,
Will
Guriddo Support Team
Hello,
Your problem is that the variable $rowid is used not in setColModelOnly, but in renderGrid. In this command is actually the solution of your problem.
With other words if you want to pass diffrent parameters you should pass it either in setColModel and in renderGrid.
|
1 2 3 4 5 6 |
// Let the grid create the model $grid->setColModel(null, array(&$rowid)); .... // Enjoy $grid->renderGrid("#detail","#pgdetail", true, $summaryrow, array(&$rowid), true,true); |
Kind Regards,
Will
Guriddo Support Team
Hello,
This depend on your implementation when a row is edited using the onSelectRow.
The demo shows the following:
|
1 2 3 4 5 6 7 8 9 10 11 12 13 |
.jqGrid({ ... onSelectRow : function (id, stat, e) { if (id && id !== lastSelection) { var grid = $("#jqGrid"); grid.jqGrid('restoreRow',lastSelection); var ic = $.jgrid.getCellIndex(e.target); $(this).jqGrid('editRow',id, {keys: true, focusField : ic} ); lastSelection = id; } }, .... }); |
The command that restores the row here is
|
1 2 3 |
... grid.jqGrid('restoreRow',lastSelection); ... |
if you replace it with
|
1 2 3 |
... grid.jqGrid('saveRow',lastSelection); ... |
the desired behavior will be meet.
Kind Regards,
Will
Guriddo Support Team
Hello,
Unfortunately no – the formatting is standard and we can not change it. Eventuaally we can add the P option.
Regards,
Will
Guriddo Support Team
Hello,
You do not need to write this question two times. See my previous post.
Kind Regards,
Will
Guriddo Support Team
Hello,
This is possible and depend on your need.
First of all your setting srcformat: ‘U/1000’ is not correct and Gurddo will not recognize this format. You should perform calculations for the Unix timestamp before to pass the data to jqGrid.
1. First option is to show the time offset without to inform user about this. This is done with the settings userLocalTime set to true in format options.
|
1 2 |
{ name : 'approveDate', index : 'approveDate', width : 100,search:true,searchoptions: { dataInit: dateFieldsInit}, editable : false,formatter:'date',formatoptions: {srcformat: 'U', newformat: 'Y-m-d H:i:s', userLocalTime : true } } |
2. You can use either the option O or T newformat. In this case userLocalTime should be set to false
|
1 2 |
{ name : 'approveDate', index : 'approveDate', width : 100,search:true,searchoptions: { dataInit: dateFieldsInit}, editable : false,formatter:'date',formatoptions: {srcformat: 'U', newformat: 'Y-m-d H:i:s O' } } |
or
|
1 2 |
{ name : 'approveDate', index : 'approveDate', width : 100,search:true,searchoptions: { dataInit: dateFieldsInit}, editable : false,formatter:'date',formatoptions: {srcformat: 'U', newformat: 'Y-m-d H:i:s T' } } |
The T option give more information.
Everthing is explained into the documentation
Kind Regards
Will
Guriddo Support Team
Hello,
Thanks. We are not aware of this problem in 5.5.2 version.
Kind Regards,
WIll
Guriddo Support Team
Hello,
We can not reproduce your problem, since we do not know anything.
Please prepare a WORKING demo, so that we can see what is happen.
Thank you
Kind Regards,
Will
Guriddo Support Team
Hello,
We have fixed the problem. If you want to test the fix, please let us know on the support e-mail.
Kind Regards,
Will
Guriddo Support Team
Hello,
Thank you for demo.
Should I suppose that your question is that this should not happen or…?
I see that there are other keys that should be disabled too – Home, End, Ins, PgUp, pgDn,
We will try to fix this in the next days.
Kind Regards,
Will
Guriddo Support Team
Hello,
In your replace_format function for that field you will need to replace the comma too in order excel to parse the data correct.
|
1 2 3 4 5 |
... {name:'curSalePrice',index:'curSalePrice',width:65,align:"right",search:false,formatter:'currency' ,formatoptions:{decimalSeparator:'.',thousandsSeparator: ',',decimalPlaces:2,prefix:'$'} ,exportoptions:{excel_parsers:false,excel_format:"[$$-45C]\#,##0.00_-",replace_format:function(v){return v.replace('$','').replace(',','');}} ... |
Kind Regards,
Will
Guriddo Support Team
Hello,
Again I’m not sure that I undersatnd correct the question.
Maybe you want to use multi sort function – see here
multiSort property or maybe you want to apply your custom sort function. See docs for custom multisort.
Regards,
Will
Guriddo Support Team
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top