This is a migrated thread and some comments may be shown as answers.

How to refresh a grid with parameters

1 Answer 120 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Seaman
Top achievements
Rank 1
Seaman asked on 10 Apr 2012, 12:14 PM
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.

1 Answer, 1 is accepted

Sort by
0
Volkan
Top achievements
Rank 1
answered on 30 Apr 2012, 05:13 PM
20 days and no answer ??
Tags
General Discussions
Asked by
Seaman
Top achievements
Rank 1
Answers by
Volkan
Top achievements
Rank 1
Share this question
or