You must Sign In to post a response.
  • Category: JQuery

    How to clear and reload the grid onclick


    Are you looking for a way to clear and reload the grid onclick ? then read this thread to know how to clear it



    http://www.jqueryscript.net/table/jQuery-Plugin-To-Convert-JSON-Data-Into-Data-Grid-Columns.html

    in this web site
    , how to clear and reload the grid onclick.and how to bing json date time
  • #757042
    hi
    try this code
    i have added datetime column

    $('#example1').columns({
    data: [
    {'Emp. Number': 00001, 'First Name':'John', 'Last Name':'Smith','Date Time':'2015-03-11 13:58:54.643'},
    {'Emp. Number': 00002, 'First Name':'Jane', 'Last Name':'Doe','Date Time':'2015-03-11 13:58:54.643'},
    {'Emp. Number': 00003, 'First Name':'Ted', 'Last Name':'Johnson','Date Time':'2015-03-11 13:58:54.643' }
    ]
    });

    Name : Dotnet Developer-2015
    Email Id : kumaraspcode2009@gmail.com

    'Not by might nor by power, but by my Spirit,' says the LORD Almighty.

  • #757251
    hi,

    $("#list1?).jqGrid('setGridParam',{ url: '@Url.Content(
    "~/PAGE/List/")',
    //type of data
    datatype: 'json' }).trigger("reloadGrid");

    Thank you.


  • Sign In to post your comments