OlegK

Forum Replies Created

Viewing 15 replies - 796 through 810 (of 968 total)
  • Author
    Replies
  • in reply to: Formatter: Date Problem #95833
    OlegK
    Participant

    I recommend you use only numbers as a month if you send data back from the server. You will transfer less data from the server and the data will be language independent.

    Because of your main problem. It seems to me that in the line 170 of jquery.fmatter.js (I use 3.8 beta so line number could be a little other in another version of jqGrid) there are a bug. Currently the line is

    in reply to: some suggestions from JSLint to jqGrid 3.8 beta #95828
    OlegK
    Participant

    Hi Tony,

    I wish you have a good time and much pleasure in the vacation.

    Best

    in reply to: changing row colors, adding images to cells, add classes #95826
    OlegK
    Participant

    Look at the following links

    http://stackoverflow.com/questions/2931732/jqgrid-coloring-an-entire-line-in-grid-based-upon-a-cells-value/2936673#2936673) to examine the row data before adding/modifieing the class of row.

    Jqgrid set cell background color

    If you want implement more complex formating like inserting some images in the cell I'll recommend you to use custom formatter and unformatter.

    Best regards
    Oleg

    in reply to: Form edit: Save record on previous/next #95819
    OlegK
    Participant

    Hi Reg,

    You can try to use

    in reply to: Problem with the event of jqgrid afterSubmit #95818
    OlegK
    Participant

    You use /jqgridwiki/doku.php?id=wiki:navigator

    Best regards
    Oleg

    in reply to: setCell and sort problem #95808
    OlegK
    Participant

    You should always post a code example or a link which can be used to reproduce your problem. Without this it's very difficult to help you. Moreover If you write only some lines of code you suppose that only this lines are important to fix your problem. In reality it is not seldom that the problem will be somewhere else where you don't suppose at the beginning. For example, such “unimportant” things like !DOCTYPE, versions of jQuery UI, other JavaScript files of the order of JS-files and so on can sometime be the reason of very strange effects. Moreover it's always more “informative” to eat a piece of cake as to read a text which describe its taste.

    Regards
    Oleg

    in reply to: No data is displaying in my grid… #95799
    OlegK
    Participant

    Hi!

    1) In some functions obj parameter are the data from the json response, in other (id and cell) is only a row of data.

    2) Every row must have an unique id. So you have to have ids. If there are no ids in your data you should just define ids with respect of one more function. You define a variable

    var curId = 0;

    and then use in inside the jsonReader:

    jsonReader : {

    in reply to: No data is displaying in my grid… #95793
    OlegK
    Participant

    Hello Chris!

    Usage of jsonReader is the correct way if you have data in the form like you have, but first of all you should fix the data to make it correct JSON string. The string 555-666-7777 in the last row must be like in all other be quoted like following:

    { “COLUMNS”:[“ID”,”NAME”,”EMAIL”,”PHONE”,”COMMENT”],

    in reply to: setCell and sort problem #95784
    OlegK
    Participant

    Try to use

    $(“#myGrid”)[0].refreshIndex();

    after modifying the data. It rebuild some indexes used internally in jqGrid for sorting. See /blog/?page_id=393/help/losing-edited-cell-data-after-paging/

    in reply to: Not able to search and sorting on jquery grid.. #95782
    OlegK
    Participant

    I wrote before that you should post the full code or a link to this. Do you tried to select all jqGrid modules during downloaded from the /?page_id=6 and http://stackoverflow.com/questions/3266028/does-jqgrid-support-row-height-so-i-can-get-multi-lines-showing-in-one-row.

    Regards
    Oleg

    in reply to: Dynamic Search #95779
    OlegK
    Participant

    Probably you forgot to include some jqGrid js-file. You should post your full code inclusive HTML with the headers which shows the order of js files and CSS which are loaded.

    Look at this example http://www.ok-soft-gmbh.com/jqGrid/CustomFilter.htm, which was the answer to http://stackoverflow.com/questions/3311929/is-there-a-way-to-programatically-set-a-filter-in-jquery-jqgrid.

    It shows another things, but it is a working example used searching in the toolbal. In the code I included some debug versions of the jqGrid files. Debug versions you find in src directory of the jqGrid.

    Regards
    Oleg

    in reply to: jqGrid and Prototype #95768
    OlegK
    Participant

    I agree with makius82 (Jonatan Gonz

    in reply to: Dynamic Search #95766
    OlegK
    Participant

    Try to define in the colModel for the column with 'select' additional options

    searchoptions: {

    in reply to: Not able to pagenate rows. #95763
    OlegK
    Participant

    Hi Stephen!

    Thank you for good words which you wrote. You welcome.

    I am not a developer of jqGrid, just a user and I have no direct interest in jqGrid. I started to use jqGrid less then one year ago in a project (which is ahready ended) and know jqGrid now prity good. My current projects has nothing with web development (like the most my previous projects). Nevertheless I like jqGrid and just help other people in answering in the forum and on the stackoverflow.com site. All this I do in the pauses between the main job which bring me money.

    So such people like me need sometime to hear that they spend his private time not for nothing and the writing of some answers really helps other.

    Best regards
    Oleg

    in reply to: Not able to search and sorting on jquery grid.. #95762
    OlegK
    Participant

    Hi deepak_ahu,

    I recommended you remove default value loadonce:false (see code from your first post) and not loadonce:true like you write in your last post.

    You should post a link with your test grid or post your test JSON data posted from the server.

    For the usage of data type see http://www.ok-soft-gmbh.com/jqGrid/Octavient.htm and /client-side-date-sorting-is-not-working/.

    Best regards
    Oleg

Viewing 15 replies - 796 through 810 (of 968 total)

Stay connected with us in your favorite flavor!