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

[Solved] Using HTTP POST with rebind

0 Answers 23 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Janis
Top achievements
Rank 1
Janis asked on 29 Sep 2011, 01:53 PM
Hello,

We have a grid looking more or less like:

.ClientEvents(x =>
                                      {
                                          x.OnDataBinding("CommunityHelpdeskThreadGrid_ApplyDataBinding");
                                          x.OnRowSelect("CommunityHelpdeskThreadGrid_OnRowSelect");
                                      })
            .DataBinding(dataBinding => dataBinding.Ajax().Select(new RouteValueDictionary { { "eventName", Model.Event.EventShortName },
            { "Action", "_GetThreadsForSearch" },
            { "Controller", "Ajax" },
            { "Area", "Community" },

We have a javascript methodf, that sets the url for the ajax call, we would also like to pass in a parameter that should be sent via POST.

threadGrid.ajax.selectUrl = '/' + window.communityHelpdesk_EventShortname + '/Community/Helpdesk/_GetThreadsForSearch/' + searchTerm;
threadGrid.rebind({ parameter2: filtersString });

This works just for GET, but we cannot get it work for POST.  Is it possible to pass an extra argument via POST?
Tags
Grid
Asked by
Janis
Top achievements
Rank 1
Share this question
or