Hello Thomas,
Before expose why is this and explain it, we like to show us a example code and data if possible. It is not clear if the data is local or not and some other things that are important for us and you have not mentioned.
So my proposal is to make a demo which demonstrates the problem and make a description of actions which cause the problem. I hope you understand our point and we can this way easy solve the problem.
Kind Regards,
Will
Guriddo Support Team
Hello,
Reloading of pivot is a little bit tricky – since we need to recalculate the columns again depending on the source data.
Simple – you need first to destroy the grid and then call pivot again – this all is with JavaScript:
|
1 2 3 4 5 |
function reloadPivot( grid, newdata, options ) { $.jgrid.gridDestroy( grid ); $("#grid").jqGrid('jqPivot', newdata, options); } |
Kind Regards,
Will
Guriddo Support Team
Hello,
If I understand correct you may want to look here: http://www.guriddo.net/documentation/guriddo/javascript/user-guide/basic-grid/#setting-options-globaly
Kind Regards,
Will
Guriddo Support Team
Hello,
You can use setJSCode to set the aligment like this
|
1 2 3 4 5 6 7 |
$mylabels = <<<LABELS $("#grid").jqGrid('setLabel','mycolumn1', '', { text-align : 'left' }); $("#grid").jqGrid('setLabel','mycolumn2', '', { text-align : 'right' }); LABELS // Output the function with setJSCode $grid->setJSCode($mylabels); |
Kind Regards,
Will
Guriddo Support Team
Hello,
The build in way is to use the method setLabel
The method can add style, classes and attributes. See the description of parameter.
Quick: if you want to change the aligment of the header column mycolumn to left you can use this code:
|
1 2 3 |
... $("#grid").jqGrid('setLabel','mycolumn', '', { text-align : 'left' }); ... |
Kind Regards,
Will
Guriddo Support Team
Hello,
We have done some changes as per your suggestions.
These can be seen here
Please let us know if it is ok for you.
Thank you for your cooperation with us.
Kind Regards,
Will
Guriddo Support Team
Hello,
Thank you for let us know that the problem is solved and way it is resolved.
Kind Regards,
Will
Guriddo Support Team
Thanks Kris,
In the next days we will do the final code on this.
Kind Regards,
Will
Guriddo Support Team
Hello,
To call the event when click on checkbox is possible, but then the
parameter permutations (ordered columns array) will not have sense. In this situation the name of the checked column maybe should be passed as parameter and the state of the checkbox, but passing different parameters types is not a good practices. We will what we can do.
Currently it is not possible to call this method with a button click.
Kind Regards,
Will
Guriddo Support Team
Hello,
We have added colMenuDragDone event with parameter permutation as of done event in columnChosser
Note that this function is executed after remapColumns.
Please let us know if it is ok for you.
Guriddo Support Team
Hello,
Can you please send us test case or link to the problem. We can not simulate all the options and code from the problems you have.
Thank you.
Kind Regards
Will
Guriddo Support Team
Hello,
I apologize, but I’m unable to understand the question.
Can you please explain it again?
Thank you.
Kind Regards,
Will
Guriddo Support Team
Hello,
The option responsive make the grid resizable (width only) when the window resize.
You can create your own resize event to make the grid resize to hight too. There is a method called resizeGrid which do this only to height.
You can attach the re size event to a jqgrid class in order to rize all the grids into the page or create your own method and method.
Below is the code which is executed when responsive is true:
|
1 2 3 4 5 6 7 |
if(ts.p.responsive) { var supportsOrientationChange = "onorientationchange" in window, orientationEvent = supportsOrientationChange ? "orientationchange" : "resize"; $(window).on( orientationEvent, function(){ $(ts).jqGrid('resizeGrid'); }); } |
Hope this helps
Kind Regards,
Will
Guriddo Support Team
Hello,
Thank you for the solution provided.
Kind Regards,
Will
Guriddo Support Team
Hello Kris,
Thank you very much for finding this problem. Actually we have made a typo when rewriting some code. The problem is fixed in GitHub.
Please let us know if you have problem with the fixed code.
Thank you
Kind Regards,
Will
Guriddo Support Team
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top