I can call a view with contextual filters without any problem, but when I add exposed filter value $view->setExposedInput to the call, I just does not work, the exposed value is not applied and being ignored. The filter 'price' field is set in the views filters options and i tried both exposing it and not exposing it to visitors without any luck. I call this view from my controller class and I need to pass the arguments to both filters and I do not need exposed form to be displayed to the user.
$view = Views::getView($view_id);
if (is_object($view)) {
$filters = [
'price' => 500, //my exposed filter value
];
$view->setExposedInput($filters);
$view->setArguments($args);
$view->setDisplay($display_id);
$view->preExecute();
$view->execute();
$view->buildRenderable($display_id, $args);
$content = $view->render();
}
I do not need exposed form to be displayed to the user
... you just contradicted your question's titleUse Ajax: True
may be relevant here