Hello,
I’m not sure that I understand the question. What you mean with secondary sort?
Guriddo Support Team
Hello,
I suppose your data is local. It is not important if you parse the the data to integer, but it is important the definition in colModel – for this purpose you will need to define the sort type of the column.
By default if there is no definition Guriddo sorts the data as text. In order to fix your problem you will need to set the property sorttype More on this you can find into the docs here
The code should look like this
|
1 2 3 4 5 6 7 8 9 10 |
colModel: [ ... { name: 'price', index: 'price', sorttype : 'integer', ... }, ... ] |
Kind Regards
Will
Guriddo Support Team
Hello,
We have fix this problem for Bootstrap4.
Thanks and sorry for delay in the answer.
Kind Regards,
Will
Guriddo Support Team
Hello,
The searchField, searchOper, and searchString field values are not present in filterToolbar method. These are valid only in certain cases in form searching (this is a old behaviour)
Instead of this use the filters property and accept it in the server. I recommend you to read this docs Here we describe what is posted to the server when searching
Kind Regards
Will
Guriddo Support Team
Hello,
For us it is working. We use not the latest version 5.15.1, but 5.14. It seems that the last version is not yes published online.
We use the following CSS:
|
1 2 3 |
< link rel="stylesheet" type="text/css" media="screen" href="../../../css/trirand/ui.jqgrid-bootstrap4.css" /> < link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css"> < link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.14.0/css/all.css"> |
Be a sure you have a icon_base : fas
If you have problems, we can prepare a online demo
Kind Regards,
Will
Guriddo Support Team
Hello,
Unfortunately column names can not contain commas in multi-sort, since the name with comma is treated as two names, because the separator in multi-sorting is “,”.
It is highly recommend that column names should contain only letters and numbers.
Kind Regards,
Will
Kind Regards
Guriddo Support Team
Hello,
Everything that can be done in Guriddo JavaScript can be done in Suito PHP.
Did you think something like this example
Kind Regards,
Will
Guriddo Support Team
Hello,
Thanks. We have fixed the problems
Kind Regards,
Will
Guriddo Support Team
Hello,
The problem you have is the sorted data that come to the grid.
Since you data is not local and come from the server it should be first sorted to the grouped field – i.e in this case this is ItemGroup, but you one is sorted to ReceivedDate, which causes the problem.
In order to solve the problem sort it first to ItemGroup and then to ReceivedDate in your sql statement.
Kind Regards
Will
Guriddo Support Team
Hello,
Some notes on your last post.
Kind Regards
Will
Guriddo Support Team
Hello,
It is possible, but you should test the speed – maybe it is too much, but anyway you should try.
Please, read carefully the parameters of the method – it can add data ac once instead of using loop.
Kind Regards,
Will
Guriddo Support Team
Instead of using F5 to refresh the new search you can use a button for this purpose. It really depend on realization.
About adding your folder array – one possible solution is first to use the one array and then use addRowData method to add the rest of your data. You can use this approach if your array is relatively small.
See the docs for addRowData.
Kin Regards,
Will
Guriddo Support Team
Hello,
Are you using Guriddo jqGrid? It seems to me that you use the not supported free-jqGrid.
Anyway we will help you.
I think that in principle there is problem with constructing the job.
What you do
There is a some mismatch – you first reload the grid and then you create it.
I suggest you to check the requestArr before it commes to the grid. It can be empty.
In you case I can recommend you the following.
Create firat the grid with empty data. If you want to but new data to the grid
just do the ajax call with the following step
|
1 2 3 4 5 6 7 8 9 |
$.ajax({ url:"....", sucess : function (data) { // build your data here // check to see if you really have data // use setGridParam to put the new data // reload the grid } }); |
Hope you get the point.
Kind Regards,
Will
Guriddo Support Team
Hello,
We really want to help you, but without any jqGrid code and the response from the server we really can’t.
As for the second problem. You should manage to make the search response from the server. If something is wrong from the server, check your server api code.
You may refer to this docs
Kind Regards,
Will
Guriddo Support Team
Hello,
In order to see what is happen – can you please send us the response which causes the problem and the Guriddo jqGrid setup.
This way we can see the problem that you have.
Thank you.
Kind Regards,
Will
Guriddo Support Team
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top