How to refresh a grid with parameters

2 posts, 0 answers
  1. Seaman
    Seaman avatar
    22 posts
    Member since:
    Nov 2011

    Posted 10 Apr 2012 Link to this post

    hi all:

    How to refresh a grid with parameters, I write that, but it's not work,pls help me ,thanks.

    the code               

      var grid_=$("#grid_right").kendoGrid({
                        dataSource: {
                            type: "json",
                            transport: {
                                read:{
                                    url: "charge-property/resources/unit_list_data.jsp",
                                    dataType:"json",
                                    data: {
                                        q: "1231453456456"
                                    }
                                }
                     ..........................................
                     ..........................................
                    }).data("kendoGrid");

    I want to in a button in the event,The parameter q modify the into "test"(old  q: "1231453456456" )

    the code :
     grid_ .dataSource.read({
                              url: "charge-property/resources/unit_list_data.jsp",
                              dataType: "json",
                             data: {
                                 q: "test"
                             }
                          });
                         grid_.refresh();
    pls help me ,thanks.

  2. Volkan
    Volkan avatar
    10 posts
    Member since:
    Jul 2011

    Posted 30 Apr 2012 Link to this post

    20 days and no answer ??
Back to Top