Hello,
Thanks for asking this.
Unfortunately this feature is not available in the last release. We have added it in our todo list for the next release.
Kind Regards
Will
Guriddo Support Team
Hello,
About 1. Can you please post the grid setup and some simple data or send a demo link or demo files to the support?
About 2. It depend how you want to process.
a) In case if you want to add the same color of all first level grouping you can:
|
1 2 3 4 5 6 |
<style> .jqGridghead_0 td { background-color: background; } </style> |
where jqGrid word in the classname is the id of the grid.
for the second level the generated class is jqGridghead_1 and etc.
b) If you want to do this dynamically depending a value one possible solution is to get the grouping names and add the appropriate classes in loadComplete by example.
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
loadComplete: function () { var i, group, myClass, Pref = this.id + "ghead_", groups = $(this).jqGrid("getGridParam", "groupingView").groups, l = groups.length; for (i = 0; i < l; i++) { group = groups<em class="d4pbbc-italic"></em>; switch (group.value) { case "ALFKI": myClass = "class1"; break; case "ANATR": myClass = "class2"; break; default: myClass = ""; break; } if (cssClass !== "") { $("#" + Pref + group.idx + "_" + i).addClass(cssClass); } } } |
and then define a style like:
|
1 2 3 4 5 6 7 8 9 |
<style> .class1 td { background-color: background; } .class2 td { background-color: green; } </style> |
Kind Regards,
Will
Guriddo Support Team
Hello,
There are two types of such server errors – the errors when the data fails to loads into the grid and the errors when something happens when editing. These events replace the jQuery ajax error
The first error can be customized by you using the loadError event:
|
1 2 3 4 5 6 7 |
$("#grid").jqGrid({ ... loadError : function( object, status, error) { // do something }, ... }); |
More about the jqGrid events you can read here
The second type of such error depend on the editing module used. More about these events can be read here in the appropriate module events.
Please let us know if you need more help on this.
Kind Regards,
Will
Guriddo Support Team
Hello Tom,
You can use the defaultValue option in serchoptions and then apply your approach.
|
1 2 3 4 5 6 7 |
... colModel : [ ... { name : "SourceTrustFlow",..., searchoptions : { defaultValue : "10"...,}...}, ... ], |
Documentation for searchoptions is here
and then you can apply your approach.
Here is a demo in PHP
Kind Regards,
Will
Guriddo Support Team
Hello,
-The degree symbol can be exported if you copy and paste it in your colModel label property. The html tags for degree in pdf does not work. See the demo link below.
-it is not possible programmatically to repeat the header table in excel. You may want to look at this solution here: https://support.office.com/en-us/article/repeat-specific-rows-or-columns-on-every-printed-page-0d6dac43-7ee7-4f34-8b08-ffcc8b022409
-by defaultĀ a single header is printed repeated in pdf. In your case toprint the multiple headers you will need to use onBeforeExport event in pdf export I recommend you again with google seerch to use the docs – this some times saves a time and effort. See the example below: http://www.guriddo.net/demo/guriddojs/export/headerpdf/
|
1 2 3 4 5 6 7 8 |
$("#pdf").on("click", function(){ $('#jqGrid').jqGrid('exportToPdf',{ onBeforeExport : function( doc ) { doc.content[0].table.headerRows = 2; } }); }); |
Kind Regards
Will
Guriddo Support Team
Hello,
To contact us through our helpdesk, just send an email to
support@guriddo.net
Guriddo Support Team
Hello,
Could you please send us a working demo, which demonstrates the problem or show us a on-line example using some public sites like jsfiddle.net
Thank you
Kind Regards,
Will
Guriddo Support Team
Hello,
The option which pace the action buttons is response: true
See docs here
On tab when used the grid has initial width zero, which make the grid not to display because of autowidth (since the parent element has 0 pixel width and hence the grid has same width)
KInd Regards,
Will
Guriddo Support Team
Hello,
Thank you for the response.
I think that the problems you have are related to server side code.
Unfortunately we are not familiar with ASP.NET MVC related code.
Kind Regards,
Will
Guriddo Support Team
Hello,
I ask for the vesion, since the ajaxFileUpload plugin you used is not compatible with jQWuery version used – 3.3.1 – see here
Note that in the link there is a working version with jQuery 2.x, but not with jQuery 3.3.1.
We have fix the ajaxFileUpload plugin to work with jQuery 3.3.1.
Below example which work with Guriddo jqGrid.
In all cases it is recommended to use another plugin.
Our note is that you need first to test the upload plugin used to work alone and then apply it to jqGrid.
Kind Regards,
Will
Guriddo Support Team
Hello,
I’m not sure that you need drag and drop in this case to move the columns from one grid to another.
To do this it is a simple solution – add mutiselect option in the grid and then define a button which on click should do the following:
1.Check to see if in the source grid there are selected rows. If there are such one, get the id of the selected rows (use getGridParam and selarrrow parameter)
2. using getRowData get the data of the selected row(s)
3. Insert the data of the selected row(s) using addRowData int the target grid
4. Delete the selected row(s) from the source grid
Simple and useful.
Kind Regards,
Will
Guriddo Support Team
Hello,
Before to try to solve the problem, we would like to know
1. The version of Guriddo jqGrid used
2. The version of jQuery used
3. The version of ajaxFileUplod plugin used
Kind Regards,
Will
Guriddo Support Team
Hello Gordon,
First of all I apologize for my mistake and that I have missed a existing feature in the Guriddo Suito PHP.
Using the existing code you can do this very easy without to modify the source code.
Here is how you can achieve this.
There is a option called excelFunc, which you can call before rendering the grid. Here is the code:
|
1 2 3 4 5 6 7 8 9 10 |
... $grid->excelFunc = "myExcel"; function myExcel( $objPHPExcel ) { $objPHPExcel->getActiveSheet()->mergeCells('A1:Z1'); $objPHPExcel->getActiveSheet()->freezePane('B3'); // return the modified return $objPHPExcel; } .... $grid->renderGrid(...); |
Again sorry for my oversight.
If you have any problem with this, please let me know.
Kind Regards
Will
Guriddo Support Team
Hello,
From what I understand I do not recommend you to transfer a passwords as texts over the networ. It is very dangerous and your application canĀ be accessed from anyone.
The password in this case can be seen in the ajax response and any people that can open the console can see the passwords.
There is no sense to do this. Instead f this you can do this using a custom formatter, where you can read the the passord put **** in the cell and store the text in separate span tag. In case of reading you should define your custom unformat functionto get the text and put it in your password field. Something like this
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
$grid->setColProperty("mypass", array( "edittype"=>"password", "formatter"=>"js:formatPassword", "unformat" => "js:unformatPassword" )); // We can put JS from php $custom = <<<CUSTOM function formatPassword(cellValue, options, rowObject) { var cellHtml = "<span originalValue='" + cellValue + "'>***********</span>"; return cellHtml; } function unformatPassword(cellValue, options, cellObject) { return $(cellObject.html()).attr("originalValue"); } CUSTOM; // Let set the code which is executed at end $grid->setJSCode($custom); $grid->renderGrid('#grid','#pager',true, null, null, true,true); |
Kind Regards,
Will
Guriddo Support Team
Hello,
Could you please describe the question more detailed?
Did you mean that your data contain sensitive information like password and this data should be displayed into the grid by example like **** and when edit it it should be the same way *****?
Is the password field encoded with some algorithm or it is a text which can be read from everyone?
Kind Regards,
Will
Guriddo Support Team
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top