Hello,
Sorry for this inconvenience. This is a new module and we begin to document it.
Please let us know what is not clear and we will help with this in all cases.
Kind Regards,
Will
Guriddo Support Team
Hello,
Glad to help. Have a nice weekend.
Kind Regards,
Will
Guriddo Support Team
Hello,
You can try to use loadComplete event (this is not tested) where just in case you can use a setTimeout to save the state.
In PHP this can be something like :
|
1 2 3 4 5 6 7 8 9 |
$savestate = <<< STATE function() { setTimeout(function() { $.jgrid.saveState("grid"); }, 200); } STATE; $grid->setGridEvent('loadComplete', $savestate); |
Please let us know if this work as per your requirement.
Kind Regards,
Will
Guriddo Support Team
Hello,
You mix both methods.
setCell is used to change the content of particular cell.
saveRow is used to save the data in a input elements that are generated within the cells.
If you do not have editable inputs elements saveRow will not fire. In order this function to work you will need first to call editRow to create the content and then save it.
You actually have very simple solution : after setCell call your function which will act as aftersave function.
Kind Regards,
Will
Guriddo Support Team
Hello,
Sorry that we have missed this post.
The way you use this currently is not supported – this means that the server side searching in tree is not supported.
In order this to work you maybe need to load all the data and set load once to true. This way the grid will be in local data and the serch will be possible.
Kind Regards,
Will
Guriddo Support Team
Hello,
As promised here is the example. the In Unit column we set the desired value.
Kind Regards,
Will
Guriddo Support Team
Hello,
Thank you for the question.
It is needed to know that the colModel of the pivot is builded dynamically, because of this changing the data source is not so easy.
Tha coulmns depend on the data. The pivot get the data analyze it – build dynamically the colModel and reconstruct the source so that it is readed to the grid.
In order to do this you will need to store your initial pivot settings m, then unload the grid and call it again with the new url. Here ia code sniplet
|
1 2 3 4 5 6 7 8 9 10 |
var pivotoptions = {...}, gridoptions = {...}; jQuery("#jqGrid").jqGrid('jqPivot',"data.php", pivotoptions, gridoptions); // to call new data source $.jgrid.gridUnload("#jqGrid"); jQuery("#jqGrid").jqGrid('jqPivot',"newdata.php", pivotoptions, gridoptions); |
Hope this helps
Kind Regards
Will
Guriddo Support Team
Hello,
You can do this in different ways.
1. Using SQL – you can use CONCAT function by example if you use MYSQL.
2. You can use custom Formatter
Kind Regards,
Will
Guriddo Support Team
Hello,
You are close.
The summary function is necessary, but using the formatter is the sufficient condition to have the values in grid summary row.
The formatter is the function which place the value in the summary row, please look at it carefully in the article and into the example.
If needed I will place a example of weighed with php code.
Kind Regards
Will
Guriddo Support Team
Hello,
Exactly – this is done via setColProperty function like:
|
1 2 3 4 5 6 7 8 9 10 11 12 13 |
$grid->setColProperty('total', array( ... "summaryType"=>"js:function(value, name, record) { // your code here .... }", "formatter"=>"js:function (cellval, opts, rwdat, act){ // your code here }", .. )); |
See in the docs how to write a javascript in PHP.
Kind Regards,
Will
Guriddo Support Team
Hello,
Suppose you mean the <span class=”crayon-e”>igv_link</span> formatter function.
In your colModel I do not see report_no field which you access with rowData.report_no
Maybe this is another field like order_no or pathology_no which are present in your colModel.
Regards,
Will
Guriddo Support Team
Hello,
It is difficult for me to understand the requirement.
Commonly you initialize the grid with jqGrid({…}).
To use fileterToolbar you call this method. After calling the method you can trigger the grid to load the data.
Kind Regards,
Will
Guriddo Support Team
Hello,
I’m not sure that I understand the problem, but the formatter has 3 parameters.
The third parameter is named rowObject. In case of json data you can use it like this:
|
1 2 3 4 5 6 |
formatter : function( callvalue, options, rowObject) { ... var mynew_var = rowObject.myfield; ... } |
Kind Regards,
Will
Guriddo Support Team
Hello,
Thank you for the hint. IMHO the better way will be
|
1 2 3 |
if($(elc).get(0).type === ‘select-multiple’ && tmp != null) { ... } |
tmp != null means null and undefined while tmp !== null means only null
P.S But this will cause problems if tmp is empty string, so I think the fixed expression is fine
Kind Regards,
Will
Guriddo Support Team
Hello,
Thank you for the test case. We have reproduced the bug.
The bug is fixed and you can get the fixed version at end of this week when the new release will be out.
Our problem was in communication – you speak about inline edit, but actually the problem was in form edit module.
Kind Regards,
Will
Guriddo Support Team
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top