glemarie

Forum Replies Created

Viewing 15 replies - 1 through 15 (of 48 total)
  • Author
    Replies
  • in reply to: JQgrid – Ondblclick event #99874
    glemarie
    Participant

    Hi,

    Are you sure that the rowid's are unique in the grid ?

    in reply to: Select first row of a grid #92926
    glemarie
    Participant

    Sorry, forget the point, I have a stange side effect whith my own javascript… I had a condition in order to make the selection of the first row only on the page load (not on grid reload), but when I remove this condition, everything works fine…

    Strange, but I don't have many time to investigate… So it's okay like that.

    in reply to: Select first row of a grid #92924
    glemarie
    Participant

    I tried something else : I added a custuml button on my grid that calls your script :

    console.log($("tr:first","#mygrid"))

    In this case, the result is OK in the console !

    Is it possible that when the gridComplete is fired, the rows are not in the table yet ??

    I tried with :

    • jqGrid 3.6.3 / 3.6.4 : same problem
    • jQuery 1.3.2 / 1.4.1 : same problem
    in reply to: Select first row of a grid #92923
    glemarie
    Participant

    I tried with the tr selector but the result shows nothing :

    With TR selector

    But it seems ok with the tbody selector $(“tbody:first”,”#mygrid”) :

    With TBODY selector

    But I don't undestand why I have this result in the first case ?!

    Thanks…

    in reply to: Select first row of a grid #92901
    glemarie
    Participant

    Hello,

    It seems that this solution doesn't work anymore. I upgraded each version up to 3.6.4, but I didn't notice when this occured. The returned id is always null (the row is not found).

    I'm not a jQuery expert… I tried these :

    $("tr:first", "tbody:first", "#mygrid").attr('id');
    $("#mygrid tbody:first tr:first").attr('id');
    $("#mygrid > tbody:first > tr:first").attr('id');

    But none worked.

    Any idea ?

    Regards.

    in reply to: Select first row of a grid #89745
    glemarie
    Participant

    Thanks a lot : it was so simple…

    in reply to: Save Search Parameters #88180
    glemarie
    Participant

    In 3.5, there is a new functionnality : summary footer row that uses a second array (userdata) in the json result. Maybe you could use something like this to store your search parameters ?

    I don't know if you can access to the json array in the client side script, but maybe Tony could tell us…

    in reply to: How to do a conditional Cell Update #88179
    glemarie
    Participant

    Hi,

    If I remember, the two events I mentionned are only triggered when the field value is modified (I use jqGrid 3.5 and the events are correctly fired). And no, I don't see any other solution… sorry 🙁

    Just a point : the code you mentionned is your real code ? If it is, it seems that you should call setCell from the grid object, like $('#mygrid').setCell

    in reply to: Multisearch return datas as undefined when twice or more #88178
    glemarie
    Participant

    I was answering to your second problem : search parameters…

    in reply to: Save Search Parameters #88159
    glemarie
    Participant

    This is what I do :

    (seach parameters input id's always stats with “gs_”)

    Save search parameters (“memoriseFiltre” is a function that saves a cookie)

    var initialLoad = true;
    jQuery(“#mygrid”).jqGrid({

    loadComplete: function() {

    in reply to: Select row with custom ID #88157
    glemarie
    Participant

    I don't use XML bu json. Anyway, it seems to be the same logic.

    If I understand your need, you need to give an extra ID (generated by your server), different from the record ID. You could then add it as a new data field in your XML and hide it in the grid. This field would then be available for your client side script.

    Does it answer your question ?

    in reply to: Cell editing / Catch server answer #88147
    glemarie
    Participant

    I'm in cell edit mode

    in reply to: How to do a conditional Cell Update #88143
    glemarie
    Participant

    I used afterSaveCell : afterEditCell is triggered before any modification. You could also use beforeSaveCell.

    The wiki contains the order in which events are triggered

    in reply to: Select row with custom ID #88142
    glemarie
    Participant

    Sorry, but I don't understand what you're trying to do…

    in reply to: Multisearch return datas as undefined when twice or more #88093
    glemarie
    Participant

    Hi,

    I posted the same problem earlier today 🙂 It's solved in 3.5.1 since yesterday Laugh

Viewing 15 replies - 1 through 15 (of 48 total)

Stay connected with us in your favorite flavor!