Hello Luigino,
Thank you for be back to us.
The problem you posted is different from the Stack-overflow thread of late 2014. The difference is that the Oleg’s example uses inline edit, while your code uses form edit, which is not the same.
If in your code you use inline edit instead of form edit – this code will work.
Moreover in the latest version of Guriddo is possible to define your own validation error dialog, which can replace info_dialog function. The grid parameter that do this is validationCell event. See the parameters in the docs. This event replaces the info_dialog in cell and inline editing.
The reason not to use info_dialog in form editing is that we have here a lot of pop up windows and we found this very inconvenient. We just set the error text on top of the form in red color (as can be seen). If you really want to display your dialog in formedit, you can call your own function before return [false,”message”] . It will run again with the displaying the text.
Kind Regards,
Will
Guriddo Support Team
Hello,
This query should work. Maybe the problem is in the query and your settings for strict comparing the names when you write the SQL.
I suggest you first to try to use only like:
|
1 2 3 4 5 6 7 |
... where ( upper(ct.bank ) LIKE upper( ? ) ) ... |
if you want to use LIKE %word% operator, maybe you can try with concat function that is used your database.
you can try to use ct.BANK instead of ct.bank in your query
The Autocomplete docs are here
Kind Regards,
Will
Guriddo Support Team
Hello,
Thank you very much for found this problem.
We have found and fixed the problem.
Since you have active Subscription, please send a e-mail to the support team and we will send you the fix.
Thank you.
Kind Regards,
Will
Guriddo Support Team
Hello,
There is no build in way to get newly added rows when use addRowData.
To solve the problem you may create your own addRowData where after adding a row yo will add a class for it. This way you can easy then get all newly added rows.
You code can look like this (this is just idea)
|
1 2 3 4 |
function myAddRow (id) { $('#grid').addRowData(id, { id: '0' }, 'first'); $('#'+id, '#grid').addClass('new-added-row'); } |
Then to get the new added rows
|
1 2 |
var newrows = $("#grid tr.new-added-row") ... |
Kind Regards
Will
Guriddo Support Team
Hello,
Yes it is normal. We pass the jQuery object. So to access the element you will need to use elem[0] for js element. Also you can directly use:
|
1 2 3 4 5 |
... elem.value() ... |
for quick get the value
Kind Regards,
Will
Guriddo Support Team
Hello,
Thank you very much for the test case. It help us to quickly find and fix the problem.
The problem is fixed in GitHub and you can get the latest build and test it.
Thank you.
Kind Regards,
WIll
Guriddo Support Team
Hello,
One possible solution is to use getColProp method for a given column, to check if it is hidden.
|
1 2 3 4 |
var column = $("#jqGrid").jqGrid("getColProp", "column_name"); if(column.hidden) { // do something } |
To get all the hidden columns use getGridParam to get the colModel and loop to check the hidden columns
|
1 2 3 4 5 6 7 |
var colModel = $('#grid').jqGrid('getGridParam', 'colModel'); var hidden_cols = []; for( var j = 0; j < colModel.length; j++){ if ( colModel[j].hidden === true) { hidden_cols.push(colModel[j].name); } } |
Kind Regards,
Will
Guriddo Support Team
Hello,
To resolve the problem you will need to define your own replaceStr function in exportToExcel method. The function should return just the original string
|
1 2 3 4 5 6 7 |
$("#jqGrid").jqGrid("exportToExcel",{ ... replaceStr : function( str ) { return str; }, ... }); |
Kind Regards,
Will
Guriddo Support Team
Hello,
We need to make some tests and I will replay to you soon.
Kind Regards
Will
Guriddo Support Team
Hello,
Both classes (your one and the table-success ) have property !important.
In order to do what you want only one should be available in this case your one. With other words – comment the line in jqgrid bootstrap4 and do the following in your in-line style definition
|
1 2 3 4 5 6 7 8 9 10 11 12 13 |
<style> ... .ui-jqgrid-btable tbody tr.table-success > td { background-color: #c3e6cb; } .rowGray { background-color: gray !important; color:white; } ... </style> |
Regards
Will
Guriddo Support Team
Hello,
Please post your full CSS definition for the class rowGray.
(Sorry to ask this, but we need to be sure that we are close to your problem at our end)
Kind Regards,
WIll
Guriddo Support Team
Hello,
How you define your custom background for the cells in css?
In which way you do this – do you use custom formatter or cellattr or rowattr?
Regards,
Will
Guriddo Support Team
Hello,
Thanks for this. You are absolutely right. We will change the example.
Thnks again.
Kind Regards
Will
Guriddo Support Team
Hello,
Thanks for reporting.
IMHO I think that calling this method in loadComplete is not the right place. loadComplete event is a event that is executed every time you use: paging, sorting, filtering and etc. – in other words every time when new data is requested. This give different results.
I recommend you to call this method after the grid initializes and using setTimeout to give the chance the grid to load the initial data.
|
1 2 3 4 5 6 |
$("#grid252").jqGrid({...}) ... setTimeout(function(){ $('#grid252').jqGrid('autoSelect',{...}); ... }, 100); |
Kind Regards
Will
Guriddo Support Team
Hello,
Try this:
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
colMenu: true, colMenuColumnDone: function(cols,column,checked) { console.log("colMenuColumnDone "+column+" checked: "+checked); if (column!="") { if (checked) { $(this).jqGrid("showCol",column); } else { $(this).jqGrid("hideCol",column); } setTimeout(function() { $("#YOUR_GRID_ID").jqGrid("resizeGrid",500,true,false); }, 50); } }, |
Kind Regards,
Will
Guriddo Support Team
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top