jqGrid's setSelect does not work after reloadGrid

Posted by Viet Pham on Stack Overflow See other posts from Stack Overflow or by Viet Pham
Published on 2010-03-27T14:17:17Z Indexed on 2010/03/27 14:23 UTC
Read the original article Hit count: 898

Filed under:

Hi,

setSelection does not select the row, whose id is 2, right after a reloadGrid.

    $("#training").setGridParam({url: 'index.php?func=trainingmgr&aAction=refreshData'});
    $("#training").trigger("reloadGrid");
    $("#training").jqGrid('setSelection', "2?);

However, setSelection can select the row, whose id is 2, when you take this line out: $("#training").trigger("reloadGrid");

Anybody experiences the same issue?

Thanks

© Stack Overflow or respective owner

Related posts about jqgrid