filter data in Kendo grid by connect to a method asp.net MVC
<p>I am making a code using ASP.NET MVC with kendo grid. 
I want to bring the data from database to Kendo grid which equal to specific date or by default "today". </p>

<p>I want to make a datepicker and a button at the toolbar and everytime I click the button it send a request to the control and filter the data in LINQ and send the request for all the data in one day. I wrote this code:</p>

<p>Controller class: </p>

<pre><code>//main method
public ActionResult LogAdminList()
        {
            return View();
        }
//submethod for grid
    public ActionResult Grid_ReadLogAdminList([DataSourceRequest] DataSourceRequest request, [Bind(Prefix = "id")] string date)
            {
                DateTime _temp;
                if (!DateTime.TryParse(date, out _temp))
                    _temp = DateTime.Now;

                return Json(_context.Entities&lt;LogAdmin&gt;().NoTracking().OrderByDescending(l =&gt; l.TimeStamp)
                    .Where(f =&gt; DbFunctions.TruncateTime(f.TimeStamp) == DbFunctions.TruncateTime(_temp))
                    .Select(l =&gt; new LogAdminInfo
                    {
                        Id = l.Id,
                        Message = l.Message,
                        MessageTemplate = l.MessageTemplate,
                        Level = l.Level,
                        TimeStamp = l.TimeStamp,
                        Exception = l.Exception,
                        Properties = l.Properties,
                        LogEvent = l.LogEvent,
                    })
                    .ToDataSourceResult(request));
            }
</code></pre>

<p>the kendo code is : </p>

<pre><code>@(Html.Kendo().Grid&lt;LogAdminInfo&gt;()
        .BindTo(Model)
        .Name("LogAdminList")
        .Sortable()
        .Columns(columns =&gt;
        {
            columns.Bound(p =&gt; p.Message).Width(50).Title(WebResources.LogListMessage);
            columns.Bound(p =&gt; p.MessageTemplate).Width(50).Title(WebResources.LogListMessageTemplate);
            columns.Bound(p =&gt; p.Level).Title(WebResources.LogListLevel);
            columns.Bound(p =&gt; p.TimeStamp).Title(WebResources.LogListTimeStamp).Format("{0:dd.MM.yyyy H:mm}");
            columns.Bound(p =&gt; p.Exception).Width(50).Title(WebResources.LogListException);
            columns.Bound(p =&gt; p.Properties).Width(50).Title(WebResources.LogListProperties);
            columns.Bound(p =&gt; p.LogEvent).Title(WebResources.LogListLogEvent);
        })
        .Pageable(pageable =&gt; pageable
            .Refresh(true)
            .ButtonCount(5))
            .HtmlAttributes(new { @class = "grd_UpcomingMilestone" })
            .ToolBar(toolbar =&gt;
                {
                    toolbar.Template(@&lt;text&gt;
                    &lt;div class="toolbar"&gt;
                        &lt;label class="category-label" for="category"&gt;@WebResources.LogFilterMessage&lt;/label&gt;
                        @(Html.Kendo().DatePicker()
                                        .Name("datepicker")
                                        .Value(DateTime.Today)
                                        .Format("dd.MM.yyyy")
                                        )

                        @(Html.Kendo().Button()
                                        .Name("filterButton")
                                        .Icon("filter")
                                        .Content("Filter")
                                        .HtmlAttributes(new { type = "button" })

                        )
                    &lt;/div&gt;
                    &lt;/text&gt;);
                        })

        .DataSource(source =&gt; source
            .Ajax()
            .Batch(true)
            .ServerOperation(false)
            .PageSize(100)
            .Read(read =&gt; read.Action("Grid_ReadLogAdminList", "LogAdmin").Data("getFilterDate"))
        ))
</code></pre>

<p>I don't know what to do exactly in the javascript. the code works fine in the first request but not when I filter.</p>

<p>what should I write as a javascript? </p>

<p>thank you very much. </p>