Hello,
In inline edit you should add class “not-editable-row” in form edit you should add class “ui-state-disabled” for jQueryUI and “ui-disabled” when using bootstrap.
The class should be added to the row. Use for this purpose rowAttr event in grid options.
Kind Regards,
Will
Guriddo Support Team
Hello,
The problem you have here is that the summary value of the column is Float, while you try to use it as string
|
1 2 |
... var modifiedCellValue = cellValue.replace(".",","); |
In order to fix the problem just make sure that the cellValue is a string.
|
1 2 |
cellVAlue += ""; var modifiedCellValue = cellValue.replace(".",","); |
Kind Regards,
Will
Guriddo Support Team
Hello,
Formatter and custom formatter should work in grouping.
It all depend what is written in the code.
Could you please send us or post a full test example which demostrates the problem?
Please look at this demo in order to see that the formatters work
Kind Regards,
Will
Guriddo Support Team
Hello,
I’m not sure that I understand the request. Could you please explain it again.
Note that if you use only one dropdown in search then the other (DEPENDED) dropdown is not appeared in the window – so the user must first open mininum two drop dawn and then make the selection – as I said this is very very difficult to be done.
Kind Regards,
Will
Guriddo Support Team
Hello,
The same what you do on unformat function
|
1 2 3 4 5 6 7 8 9 10 11 12 13 |
$replacecomma = <<<REPLACECOMMA function replacecomma( postdata ){ var rate = postdata['hourlyrate']; postdata['hourlyrate'] = rate.replace(",","."); return postdata; } REPLACECOMMA; $grid->setNavEvent('edit', 'serializeEditData', $replacecomma); $grid->setNavEvent('add', 'serializeEditData', $replacecomma); $grid->setJSCode($custom); |
Kind Regards,
Will
Guriddo Support Team
Hello,
The unformat function works. Your problem is that you have unformat function.
Let see what is happen.
In order this to work you will need to remove the unformat function.
If you want to post the data to server again with “.” you may need to use serializeEditData to convert the “,” to “.”.
Kind Regards,
Will
Guriddo Support Team
Hello,
I’m not sure that I understand the question.
Can you please explain us this problem more detailed.
Note that jqGrid can not load data from Excel file.
Kind Regards,
Will
Guriddo Support Team
Hello,
This can be done in the following cases
1. In PHP using the setColProperty like this
|
1 2 3 4 5 6 7 |
$grid = new jqGridRender($conn); // Write the SQL Query $grid->SelectCommand = 'SELECT OrderID, OrderDate, CustomerID, Freight, ShipName FROM longorders'; ... // change the column heading of OrderID $grid->setColProperty("OrderID", array("label"=>"My ORDER Heding")); |
2. In JavaScript after the grid is created using the setLabel Method
|
1 2 |
... $("#grid").jqGrid('setLabel', 'OrderID', 'My ORDER Heding'); |
Kind Regards,
Will
Guriddo Support Team
Hello,
This is not so easy thing to do. While in edit dialogue the fields are static determined – we know the number of fields which will appear in the form, the fields in search dialogue are variable and it is not so easy to bind such dependency. Note that one select field can appear more than one time in the search dialogue – what will we do in this case?
Kind Regards,
Will
Guriddo Support Team
Hello,
I think you will need to trigger(‘resize’) after the grids (delay after load) are loaded.
You can experiment with setTimeout function.
Kind Regards,
Will
Guriddo Support Team
Hello,
Thank you for the feedback.
Kind Regards,
Will
Guriddo Support Team
Hello,
Thank you for the recommendation. We will take in account this possible solution.
For now we will stay in the current position, hoping the jQuery UI will fix the problem.
Kind Regards,
Will
Guriddo Support Team
Hello,
Just now I have downloaded the trial and copied into the web directory the content. It works fine for us. I think you use some other old including and this causes the problem. Her is how is written our working code loading fragment.
|
1 2 3 4 5 6 7 8 9 |
<?php ini_set("display_errors",1); require_once '../jq-config.php'; // include the driver class require_once ABSPATH."php/PHPSuito/DBdrivers/jqGridPdo.php"; // include the jqGrid Class require_once ABSPATH."php/PHPSuito/jqTreeGrid.php"; |
Note that you will need to load only the jqTreeGrid.php, since we use a autoloader, which loads automatically all the needed other files.
Kind Regards,
Will
Guriddo Support Team
Hello,
dataInit works for us. Here is a solution, which I think is not the best one, but it works. It is applied for one field, but you can do it for all the editable one:
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
function loadapprovalsgrid(approvallist) { $("#Approvals_grid").jqGrid({ url: site['uri']['public'] + '/data/Config/Approvals/empid', editurl: site['uri']['public'] + '/data/Config/Approvals/', datatype: "json", colModel: [ { label: 'ID', name: 'id', key: true, width: 10, hidden: true }, { label: 'application', name: 'application', width: 40,editable: true, formatter: 'select', edittype:'select',editoptions:{value:"timesheets:timesheets;expenses:expenses", dataInit : function(el){ $(el).on('change', function(e){ $('#grid').jqGrid('saveRow',lastSelectionApprovals); $('#grid').jqGrid('editRow',lastSelectionApprovals, {keys: true}); }); }}, .... } |
Hope you have got the point.
Kind Regards,
Will
Guriddo Support Team
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top