In fact, when we are clicking on a box, the unformat method is called.
On every navigator except IE, if a bos is checked and we click on it, the unformat method will return return “O” when on IE it will return “N”.
in IE, $(cellobject).html().indexOf(“checked”,0) will return -1 when its not on other navigator
In fact, you response is not a valid JSON string so I think it won't work as i told you…
maybe like this but I am not sure it will work with your type of string:
var contenu2=JSON.parse(contenu);
alert(contenu2[1].value);
If you wanted to use it in the javascript code It would probably be something like this:
|
1 |
var contenu2 = JSON.parse(contenu);<br />alert(contenu2[1]); |
I have made some more test.
It appears than in any navigator except from IE, if a box is checked and I use the getcell method, I will obtain the “O” character.
In IE, I will get the “N” character and using the setcell method to set it to “O” does not seem to work.
Yes I was using the latest version released with the 3.7 beta.
The new css file fixed the problem.
Thank you a lot.
I didn't think you would have already corrected it.
You are fast^^
I have no idea as how to solve this problem on IE. Everything works just fine in other browsers (Opera, Safari, Google Chrome, firefox).
And I have to make this work on IE 7 and 8 as per order from my client…
Thank you a lot bkeszler!
I have made some progress thanks to you.
I have stopped trying to enable the checkboxes in the form editing.
I have set the field as non editable and now I just try to make it editable by clicking on the checkbox directly in the grid and sending an AJAX call.
Apparently, everything works just fine.
The only problem is specific to IE (I have tested this on IE8).
While everything is OK with any other navigator, IE8 have some problem with the checkboxes.
If a checkbox is unchecked, I can click on it in the grid in order to check it.
But IE will signal this box as unchecked when proceeding the AJAX call.
If a checkbox is already checked, in IE8, I can't uncheck it, but IE still signals the box as unchecked when proceeding the AJAX call.
I don't have this behaviour in any other navigator.
Here is the code I use:
$(document).ready(function() {
function ajaxSaveUsers(rowid, colid) {
This problem only occurs in the firefox navigator.
So this is certainly caused by the use of a specific ellipsis-xbl.xml file to enable ellipsis in firefox.
The use of ellipsis and cell editing works in Chrome and IE.
However, if the cell editing works for Opera, the ellipsis doesn't work.
In fact, the problem doesn't seem to come from a conflict between the true scrolling and cell editing.
After some more investigation, the problem seems to be a conflict between the use of ellipsis and the cell editing:
I am using this in order to use ellipsis:
I have tried using the latest version of the jqgrid from the dev branch of github and the problem seems to be solved.
Thanks again Tony for your excellent work!
I think this bug was fixed in the github 3.7 version.
I'll try it again and keep you informed.
Here is a more precise example of what is happening to me:
I have more than 11000 rows in my database. I initially populate the grid with a request to the database that returns 9159 rows.
As I am using auto loading while scrolling, only 100 rows can be loaded at the same time (rowNum:100). The first 100 rows are loaded at first, then if I scroll down over these 100 rows, the following 100 rows are loaded. And so on until only the last 59 rows are left and are loaded at the end.
With this 9159 rows I can scroll down to the end without encountering any problem.
But now, If I try to use advanced searching on this 9159 rows with conditions that cut the number of rows returned by the server down to 110, the first 100 rows are loaded normally, I can scroll down to load the last 10 rows, but when reaching the end, these 10 rows are loaded a second time. And so on unitl they are loaded 5 times.
I have changed the event I use from “select” to “show” and it works just fine!
Here is a code example:
$(document).ready(function() {
I will try to use the setCol method to set the field as editable before opening the addrow form and set it back as non editable afterwards.
I'll keep you informed
I have searched the documentation thoroughly and I have spent a few hours looking on this forum but I still can't figure it out.
I don't think I can use the dataInit parameter of the colmodel nor the formoptions parameter of the editoptions of the colmodel.
I'am sticked…
Is is possible to add the different non editable field data to the data posted to the server by using the beforeSubmit function for instance, but I can't let the user specify himself the information.
But thank you anyway.
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top