This question is locked. New answers and comments are not allowed.
I have a form that contains optional fields of research.
When a user fills out these fields and press the submit button, I need the grid to run the ajax call passing these optional parameters.
I do not know before the values that the user could enter, so I can not write something like this:
. Ajax (ajax => ajax.Action (ActionName? Opt1 = 'abcde', " ControllerName"))
With JQuery can i write something like this?
. Ajax (ajax => ajax.Action (ActionName? Opt1 = "+ $ ( '# Opt1').Val()," ControllerName "))
The second question is: how can I make the AJAX call of the grid?
Thank you
When a user fills out these fields and press the submit button, I need the grid to run the ajax call passing these optional parameters.
I do not know before the values that the user could enter, so I can not write something like this:
. Ajax (ajax => ajax.Action (ActionName? Opt1 = 'abcde', " ControllerName"))
With JQuery can i write something like this?
. Ajax (ajax => ajax.Action (ActionName? Opt1 = "+ $ ( '# Opt1').Val()," ControllerName "))
The second question is: how can I make the AJAX call of the grid?
$('#myButton').submit(function() {
//TODO force reload of the grid
return false;
});
Thank you