alb84

Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Author
    Replies
  • in reply to: set event callback to an already constructed grid #99100
    alb84
    Participant

    Of course, in fact I did not ask to EXECUTE loadComplete after the grid is created, but I asked to DEFINE or REDEFINE the callback function of the loadComplete event after the grid is created. Is there a way to do that?

    Looking on the web the only examples of assigning a callback function to the loadComplete event I've found are done in the constructor of the jqGrid, not when the jqGrid is already constructed.

    in reply to: setSelection does not select after reloadGrid (potential bug) #99087
    alb84
    Participant

    I have a jqGrid created when my page loads.

    When I update or delete a row I use the methods setRowData or delRowData to update the grid withour reloading it.

    Yet when I add a row, I cannot use addRowData because the sorting is wrong.

    So I add the row in the database and then reload the grid.

    But I want the new inserted row selected.

    So I call setSelection, but the reloadGrid fires after the setSelection and so my row is not selected.

    So I need to assign a callback to the loadComplete event, but my grid is already created when I want to assign the callback to the loadComplete event… is there a way to do this?

    alb84
    Participant

    Maybe the problem derives from another problem. I noticed the True scrolling Rows example sends ajax request to the server even if the rows have already been requested before. Yet in my project rows seems to be cached, because when I scroll up I see the requests to the server but when I scroll up requests are no more sent. Maybe this is linked with the first problem?

Viewing 3 replies - 1 through 3 (of 3 total)

Stay connected with us in your favorite flavor!