[CLOSED] MVC Remote Filtering with Header Items as filters

Page 1 of 2 12 LastLast
  1. #1

    [CLOSED] MVC Remote Filtering with Header Items as filters

    Hi,

    I have a requirement to allow the user to type in the Grid header items and do the filter/sorting/paging remotely.
    Nothing is being done locally as the data sets are potentially very large. I'm also using Buffering/Paging/Infinite Grid.

    I have sorting and paging working remotely but don't know how to package the Header filters and pass it to the controller which will pass it to the Repository layer for filtering.

    This is ASP.NET MVC 4.5 project.

    Please provide some sample code.

    Thanks,
    Leo
    Last edited by Daniil; Aug 06, 2013 at 8:26 AM. Reason: [CLOSED]
  2. #2
    Hello!

    Here is a sample of GridFilters Remote in MVC: http://mvc.ext.net/#/GridPanel_Plugi...ilters_Remote/
    Last edited by Baidaly; Jul 30, 2013 at 12:21 AM.
  3. #3

    Did't get the attachment

    Quote Originally Posted by Baidaly View Post
    Hello!

    Here is a sample of GridFilters Remote in MVC.
    Didn't get the attachment or anything. Can you please re post?
  4. #4
    Sorry, please find the example above.
  5. #5

    Using MultiHeaders with Remote Filtering

    Quote Originally Posted by Baidaly View Post
    Sorry, please find the example above.
    Thanks, but that was not my question.

    Look at this example http://mvc.ext.net/#/GridPanel_MultiHeader/Filter/

    This is the way I want to do my grid filters but using Remote Filters. The Sample is using Local Filters to filter the grid locally.

    Can you please help?

    Thanks,
    Leo
  6. #6
    Thank you for clarifications!

    It seems that the best option is to use filter method of the Store: http://docs.sencha.com/extjs/4.2.1/#...-method-filter

    Here is the sample of filtering with Infinite Scrolling: https://examples2.ext.net/#/GridPane...Remote_Filter/
  7. #7
    Hi everybody,

    Recently, the new FilterHeader plugin has been implemented in Ext.NET. Seems it is exactly what you are looking for.

    An example of remote filtering is here.
    trunk\Ext.Net.Examples\Examples\GridPanel\FilterHe ader\Remote\Default.aspx
  8. #8
    Quote Originally Posted by Daniil View Post
    Hi everybody,

    Recently, the new FilterHeader plugin has been implemented in Ext.NET. Seems it is exactly what you are looking for.

    An example of remote filtering is here.
    trunk\Ext.Net.Examples\Examples\GridPanel\FilterHe ader\Remote\Default.aspx
    I did look at it and it looks awesome, but will this work with MVC? Or will an MVC version of this example be available in the SVN soon?
    I can really use this right now.

    Thanks,
    Leo
  9. #9
    It should work with MVC as well. Probably, at some point we will add this example in MVC Examples Explorer, but not right now.

    So, you can start to work on that right now without waiting a sample. If you face any trouble, please ask our assistance here.
  10. #10

    Micro sample

    Hi,

    The trouble with using the existing examples in an MVC context (MVC 5 in my case) is that you don't get the FilterHeaderConditions mapped into the StoreRequestParameters. I have hooked the store up with infinite scrolling to an AjaxProxy pointing to "MyControllerAction".
    For posterity and lack of a documented example, the following seems to work:

    public ActionResult MyControllerAction(StoreRequestParameters parameters)
    {
        var filterHeaders = new FilterHeaderConditions(this.Request.Params["filterheader"]);
        // ...
    }
Page 1 of 2 12 LastLast

Similar Threads

  1. [1.0] Codebehind and GridFilters/Remote filtering
    By plykkegaard in forum 1.x Help
    Replies: 7
    Last Post: Oct 26, 2011, 10:01 AM
  2. [CLOSED] Header filters and remote paging
    By rthiney in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Oct 12, 2011, 7:48 PM
  3. [CLOSED] Remote Load of Nodes and configured filters
    By macap in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: May 03, 2011, 1:55 PM
  4. Get filter string for Remote Filtering
    By peter.campbell in forum 1.x Help
    Replies: 2
    Last Post: Feb 15, 2011, 3:34 PM
  5. remote and local filtering
    By marcmvc in forum 1.x Help
    Replies: 0
    Last Post: Oct 13, 2009, 12:38 PM

Tags for this Thread

Posting Permissions