This project is read-only.

paging doesnt work with external filter

Mar 21, 2014 at 6:41 PM
hello everyone

i made i external filter for this grid but when there is a paging and click on it my external filter will be lost . could anyone help me please?

thanks by advance

here i post the code for external filter
 <form method="post">
        @Html.TextBox("searchValue", ViewBag.CurrentFilter as string, new { placeholder = "Search" })
        <input type="image" src="@Url.Content("~/Content/Images/Filter.png")" alt="Filter" style="padding-top: 0px;" />
           
        
      
        <br />
            <br />
        @Html.RadioButton("criteria", "arID", true)<span>Code</span>
        @Html.RadioButton("criteria", "arLib")<span>Omschrijving</span>
        @Html.RadioButton("criteria", "XXCROSYN")<span>Alternatief</span>

            

     </form>
Mar 22, 2014 at 11:49 AM
Hi,

Grid stores parameters only passed by query string. WHen you novigate to another page your browser make an http GET request (/path?grid-page=2) and all your previous POST parameters will be lost.

Use GET parameters to filter you initial data source:
 <form method="GET">
....
Marked as answer by djramc on 3/22/2014 at 3:57 AM
Mar 22, 2014 at 11:58 AM
thank you so much