Skip to content Skip to sidebar Skip to footer

How To Set Grid Post Param Dynamically And Trigger Reload With The New Url?

I have the following jQgrid Free (version: 4.15.2) definition: $(document).ready(function () { var $load_form = $('#load_form'), $form_id = sessionStorage.getItem('form

Solution 1:

If I understand you correctly you want to change url parameter. The code of the click-event handler could be close to the following:

$(document).on("click", $load_form, function (ev) {
    var p = $questions_grid.jqGrid("getGridParam");
    p.url = "/ajax/questions/get/" + $("#load_form").data("formid");
    $questions_grid.trigger("reloadGrid");
});

Post a Comment for "How To Set Grid Post Param Dynamically And Trigger Reload With The New Url?"