Hello,
Download the last build from GitHub here
When unpacking use only jquery.jqGrid.js or jquery.jqGrid.min.js from the js directory.
Using the example from jsfiddle do
|
1 2 3 4 5 6 7 8 9 10 |
columnModel = [ {"name":"TimeSelection_0","index":"d0_key","sorttype":"int", "sortfunc":function(a, b, dir, oa, ob) { return oa.index > ob.index ? dir : -dir; } }, {"name":"StoreName_1","index":"d1_key","sorttype":"int"}, {"name":"GrossSales_2","index":"GrossSales_2","sorttype":"int"} ]; |
This way we define a custom sortfunction to which we pass not only the compared values a,b, but the object value oa, ob.
The object value contain the index property which stores the indexes of the sorted rows to their historical insertion. I.e the index begin from 0 and end to the last record number.
Note that we do not compare for equality since we are sure that the indexes are unique.
I think it is a fix – not very good, but we have the same behavior in all browsers.
Please let us know if this is ok for you.
Kind Regards,
Hello,
I will send you instructions tomorrow.
Best Regards
Hello,
I have a progress on your problem.
Would you like to test this solution?
Kind Regards,
Hello,
I see the problem you point. To be a honest, this is not a jqGrid problem, but rather a way how different browsers apply the sort algorithm.
I have checked in our jqGrid code and it is according to the ECMA specifications – the sorting function return -1, 1, 0 which is correct, but… Chrome is exception.
This article (instead that it is old) is true today.
I have try to implement the idea mentioned in the discussion above, but Chrome has a totally unexpected behavior in the last version when we apply a sort to the object
I will try to apply another approach, but I do not promise that it will be ok.
Kind Regards,
Hello,
There is a option in editRow method – named focusField. If set with number >=0 it focus to that field.
It is not possible to focus the Submit button with this option.
You can try this:
|
1 2 3 4 5 6 7 8 |
$focus = <<< FOCUS1 function(form, oper) { $("#sData").attr("tabindex","-1").attr("href","#").focus(); } FOCUS1; $grid->setNavEvent('edit', 'afterShowForm', $focus); |
Kind Regards
Hello,
Please check if the cntryval is filed using console.log.
One more advice. I suggest you to create variable which refer to this and use it in your code, something like this:
var that = this;
var sr = jQuery(that).jqGrid(‘getGridParam’,’selrow’);
This is needed since in some scopes like ajax and each this refers to the current content.
I suggest you to make first two depended list boxes – i.e as simple as possible and see where the problem is.
You can check every variable and see what is happen.
Also be a sure that the ajax calls are ok and they return the expected content.
Please let me know if you have difficulties on realizing this.
Kind Regards,
Hello,
Thank you for reporting this problem.
The problem is already fixed. You can either wait for the new bug fix release (after 7-10 days) or get the fix from GitHub.
Kind Regards,
Hello,
I think you have mixed the PHP code with javaScript. Thuis can be seen in beforeShowForm event, where the code is stored in $beforeshowedit variable.
In this code you have calls to jQuery(“$subtable”).jqGrid(‘getGridParam’,…);
$subtable is a PHP variable while jQuery(..) is a JavaScript code.
Since this id is changed dynamically you can not obtain it in this way.
To solve the problem use this insteag of $subtable in beforeShowForm event.
The this point to the current active grid.
In beforeShowForm event replace all
jQuery("$subtable").jqGrid(...);
with
jQuery(this).jqGrid(...);
Best Regards,
Hello,
It seems I have not explain good.
Please provide the code where this happen. This will help us to identify the problem.
I see you use Bootstrap and jQueryUi in one place. What styling in jqGrid is used – jQueryUI or Bootstrap?
The code which demonstrates the problem is highly appreciated.
Please before to post the code be a sure that the problem you describe exists.
Kind Regards,
Hello,
Can you please provide a test case for the problem?
You should understand that with this kind of description is very difficult to reproduce the problem. To be a honest we can look for this problem 2- 3 days without success.
Also it is very important which js libs are used and on which browser this happen.
Any additional information will help.
Thank you
Kind Regards,
Hello,
I apologize for the situation and the tone of behavior.
Each software product has problems. If someone does not recognize this, then something is wrong.
Most problems are solved, but there are those who find it difficult to be solved in a particular situation or efforts made to resolve them would bones too.
In your case it really is and you repeatedly been told that at the moment this is the solution.
Of course there are software products, where this problem does not exist, but that does not mean that we need to mention how bad the product Guriddo jqGrid is, for which you have paid license.
Again, I apologize for what happened and I hope in the future to find common solutions, not hatred.
To corrected the mistake Your License was extended by three months and personally I am committed to 10 days to give you a definitive answer to the problem.
Kind Regards,
Hello,
The problem is not in jqGrid, but rather in jQuery implementation. Some explanation here
Kind Regards,
Hello,
It is a good idea to give us a feedback, if the answered problems are resolved, before to post many other questions.
Thank you.
Kind Regards
Hello,
Making the grid Section 508 Compliant is a process and not ready solution.
To be a hones we are not familiar with JAWS.
Can you please describe in detail the problem with example.
Only in this case we can help to solve such kind of problems
Thank you
Kind Regards,
Hello,
Sorry again. Could you please try again?
Do not forget to clear your browser cache.
Kind Regards,
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top