OlegK

Forum Replies Created

Viewing 15 replies - 106 through 120 (of 968 total)
  • Author
    Replies
  • OlegK
    Participant

    Tony,

    if the data have already datatype: “local” then addLocalData will be called before addJSONData. addLocalData sorts the local data. On the other side if one loads the data from the server and one have loadonce: true

    in reply to: bug on IE8 compatibility view with IE7 #100761
    OlegK
    Participant

    I recommend you to use meta http-equiv=”X-UA-Compatible” like

    or add “X-UA-Compatible” in the HTTP header by configure your web server (see here).

    It will perevnt usage of Compatibility View independent on the setting of Internet Explorer. Why one should simulate IE7 on your HTML page?

    Regards
    Oleg

    OlegK
    Participant

    Hello Tony,

    what I mean is just that jqGrid sort the data locally if the option loadonce:true are used. In many scenarios one can't sort the data on the server. Only the local

    OlegK
    Participant

    There are many critic points in the code which you posted. It contains also some syntax errors (like usage of shrinkToFit: false more as once). I'll answer only on your main question. You should allow to process one loadComplete

    in reply to: jqGrid Tutorial #100732
    OlegK
    Participant

    You are welcome!

    One more clear bug in the posted code is the usage of before . I recommend you to validate posted HTML code in http://validator.w3.org/ and validate JavaScript code on http://www.jslint.com/ or http://www.jshint.com/.

    Best regards
    Oleg

    in reply to: jqGrid Tutorial #100729
    OlegK
    Participant

    Hello,

    I find in general very good to share his exerience with other people, but it's better to post more correct examples. I am not Spring MVC developer and not Java developer at all, but some clear errors I could see in the example which you posted here:

    • you use very old version 1.4.4
    in reply to: How to get the class ? #100695
    OlegK
    Participant

    If I understand your problem correctly the best choice in your case is the usage of cellattr property of colModel. See the answer mor an example of such implementation. The reason is the following: jqGrid internally create the rows of the grid sequensially one after another. The property cellattr

    in reply to: Complex search AND and OR #100690
    OlegK
    Participant

    Are you sure that you use the version 4.4.4? For example the demo uses jQuery 1.9.0, jQuery UI 1.10.0 and jqGrid 4.4.4 and I can't reproduce the error which you describe on the demo.

    In any way if you have found an example when flitering of jqGrid works incorrect you should post full demo with description of the test case which can be used to reproduce the problem. Only in the case one will be able to reproduce, localize and fix the bug.

    Do you try to use names of columns without dots: replace “a.id” to “a_id” or any other name for example. If you load the data from the server and use loadonce: true for the local filtering you can use jsonmap: “a.id”, but the value on the name property choose any other (without dots).

    Best regards
    Oleg

    in reply to: Displaying in jqgrid cells #100689
    OlegK
    Participant

    You need just use autoencode: true option of jqGrid. Then jqGrid will interpret all cell data as text and not as HTML fragments. The exception will stay custom formatters. The results of working custom formatters are interpreted always as HTML fragmants. If needed you can use $.jgrid.htmlEncode function inside of your custom formatter.

    Best regards
    Oleg

    in reply to: JqGrid – shows less than it should #100683
    OlegK
    Participant

    I am sure that your server returns either JSON or XML because it's only two formats which supports jqGrid. Which value has datatype parameter of jqGrid which you use? If you don't specify any datatype

    in reply to: JqGrid – shows less than it should #100681
    OlegK
    Participant

    Hi,

    jqGrid is pure JavaScript solution. So what you can do is to use Fiddler, Firebug, Developer Tools of IE or Chrome or any other tool to catch the exact JSON response of the server. If you save the JSON response in the file with the name like “test.json” you can use url: “test.json” to reproduce the problem without you server environment. You should just provide the HTML page with the JavaScript code which you use. If you see that the problem is do on the server side then you need debug it yourself because it has no relation with jqGrid.

    By the way Fiddler works as HTTP proxy. So using Fiddler one can catch any HTTP trafic in any environmat with any servers and then having the traces one can use Fiddler in autoresponse mode. So the fiddler will answer on the requests with the previously saved responses without having the server environment.

    In the answer

    OlegK
    Participant

    I think the problem is that jQuery 1.9.0 don't accept as input strings which starts with CRLF (“\r\n”). The select which returns the server looks as
    \r\n\r\nNot AssignedALAKAZARCACOCTDEDCFLGAHIIDILINIAKSKYLAMEMDMAMIMNMSMOMTNENVNHNJNMNYNCNDOHOKORPARISCSDTNTXUTVTVAWAWVWIWYASGUMPPRUMVI

    If you would remove the first “\r\n\r\n” the problem will be solved.

    From my point of view it's very interesting information, but it's mostly the compatibility bug in jQuery and not the problem in jqGrid.

    Best regards
    Oleg

    P.S. A stupid editor has the forum! One have to write always the backslash twice to make it displayed correctly.

    in reply to: Seleting the checkbox based on XML value #100665
    OlegK
    Participant

    I find introduction of onInitGrid callback very helpful, but not in you case aram535. What Tony wrote is not exact code. It should be interpreted something like
    onInitGrid: function() {

    in reply to: bug in local searching #100661
    OlegK
    Participant

    Sorry! It was my error… 🙁

    in reply to: bug in local searching #100659
    OlegK
    Participant

    I think that the previous fix which you posted is still buggy. I descibes the problem in the comment. I'm not sure that the changes which I suggested in the pull requests fixes all current problem, but at least the appling of the same filter on the demo which uses my suggestion works correctly.

    Best regards
    Oleg

Viewing 15 replies - 106 through 120 (of 968 total)

Stay connected with us in your favorite flavor!