joeharrison714 / MVCGrid.Net

http://mvcgrid.net
MIT License
74 stars 55 forks source link

Load Grid On Demand | Can I still call setAdditionalQueryOptions #66

Open shefaliA opened 8 years ago

shefaliA commented 8 years ago

Hi, On button click , I want to load grid on demand .But When I call setAdditionalQueryOptions before , its giving error MVCGrid not defined .

            MVCGrid.setAdditionalQueryOptions('IndividualDetailSearch',
                          {
                              Index: searchIndex,
                              CCNumber: $('#CCN').val(),
                              action: "SEARCH"
                          });
                        MVCGrid.reloadGrid('IndividualDetailSearch');
shefaliA commented 8 years ago

I have these two properties set on Grid Defination .WithPreloadData(false) .WithQueryOnPageLoad(false)

On click of button I am calling MVCGrid.reloadGrid('IndividualDetailSearch');

But when I click on button - I get "Uncaught ReferenceError: MVCGrid is not defined" .Can you help please?