Hello!
I hope, that I found the bug. The problem is that in
Hello Tony,
I really mean the line 694. The line 683 selects “span.ui-jqgrid-resize” and the column having resizeable: false don't have the “span.ui-jqgrid-resize”. The line 692-697 should be the following
$htable.find("div.ui-jqgrid-sortable").each(function () {
Hello Tony,
the described bug is still not fixed in the jqGrid 4.2.0. Do you forget about this or do you think that it's not needed to fix the problem?
Moreover I think, that it would be very practical and simple to allow to use functions (metods) inside of xmlReader. The implementation will be simple enough, but it would gives the user the same power to read practically any XML data like one can do this with JSON data. The usage of attributes instead of elements to represent the value of columns can be also easy possible in the way.
What is your opinion about this?
Best regards
Oleg
Hello Tony,
Hello yvon,
how I recently answerd in the answer on the same question the problem can be fixed by modifieing of the code of the lines 372-373 of grid.jqueryui.js
You should change the lines
});
jQuery("#list").jqGrid('navGrid','#pager',{edit:true,add:true,del:true});
at the end of the script to
jQuery("#list").jqGrid('navGrid','#pager',{edit:true,add:true,del:true});
});
Typical origin for the problems which you describe are wrong filled jqGrid. If the input (JSON or XML data) of jqGrid has no id information or has the information, but in wrong way, jqGrid use integers 1,2,3… as the row ids. So I recommend you to verify how you fill the grid.
Regards
Oleg
It seems to me that you posted the issue in the wrong forum. It can be that you have WCF or MVC problem. In the case you can post you question on http://stackoverflow.com/
Hello Tony,
if jqGrid has the problem with two last recent versions of jQuery 1.6.3 and 1.6.4jqGrid have to be changed to fix the problem.
I am not so pessimistisch in the size of changes. The problem exists only in the parts of code where the data can be changed. So it is just some places in multiselect and editing.
For example in the form editing one have to fix the line 360
if($(this).attr("checked")) {
to
if (this.checked) {
The line in the inline editing I posted before. In grid.celledit.js the line
Take a look in the jqGrid documentation. There are onRightClickRow event which you can use.
Regards
Oleg
You use
I can suggest you to download the demo project from the answer and this one. In the example, like in most other examples, will be used empty “
Best regards
Oleg
Hello Ivan,
I agree with you that it is a problem.
Look at the demo which I wrote for the answer. It shows how you can overwrite the standard $.jgrid.checkValues function and do some additional actions. The example uses inline editing, but you can easy modify it for the form editing.
I can add that one more important problem is that the field validating will be broken at the first error found. If one mark the fields having errors one can validate all fields. In dialog haveing many field it can improve the user expirience.
As the workaround I could suggest you to use beforeSubmit event. If you would returns from your version of $.jgrid.checkValues allways true, but set some error flag (varible), you can test the flag in your beforeSubmit
Hello!
I agree with you. The same requirement have the most customers. The usage of “-1” is not allowed and can't be used, but one can use some large enough value and
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top