Click here to Skip to main content
15,946,988 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am using JQGrid in ASP.NET MVC and initializing the grid in document ready as below

    colNames: ['Col1', 'Col2'],
    colModel: [
                { name: 'Col1', index: 'Col1', width: 2, sortable: false },
                { name: 'Col2', index: 'Col2', width: 2, sortable: false }
    onSelectRow: function (currid) {
        //doing some thing
    autowidth: true,
    shrinkToFit: false,
    height: '100',
    width: '100%',
    rowNum: 2,
    pgtext: "",
    pgbuttons: false,
    viewrecords: true,
    imgpath: '@Url.Content("~/Content/images/jqgrid/")', 
    toolbar: false,
    gridComplete: function () {
        $("tr.jqgrow:odd").css("background", "#DDDDDC");

when the ready is fired and at end it does a server call to default page action as below


I have replaced the controller and action name in the above url.

why is this behavior happening? and how to avoid this behavior?
Updated 26-Aug-13 19:49pm

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900