Not able to retain the applied filter on grid panel when menu items switched on the page.

  1. #1

    Not able to retain the applied filter on grid panel when menu items switched on the page.

    Hi i am facing an issue on grid panel for retaining applied filter in header items.
    I have menu item on the page on click o these menu grid data changes and displayed. I apply filter on one column and records are filtered and now i click on menu item and gird is refreshed but the data is not filtered it display all records respective to the menu. But i want data should be displayed according to the filtered applied previously.
    StringFilter Customer = (StringFilter)GridFilters.Filters[7]
    this is code which i have using on code behind to retain the filter.
     TextField CustomerFilter = (TextField)GridView1.FindControl("CustomerFilter");
        if (CustomerFilter != null)
        {
            if (CustomerFilter.Text != null && CustomerFilter.Text != "")
            {
                Customer.SetValue(CustomerFilter.Text);
                Customer.SetActive(true);
                filter.Customer = CustomerFilter.Text;
            }
            else
            {
                Customer.SetActive(false);
            }
        }
    Please provide suggestion for the same.
  2. #2
    Hello, sorry, it is hard to suggest anything with the amount of information you provided.

    Think you can write a reproduceable test case so we can provide proper advice?

    If in doubt on how to come up with a simple runnable example, please refer to these posts:
    - Forum Guidelines For Posting New Topics
    - More information required
    Fabrício Murta
    Developer & Support Expert

Similar Threads

  1. [CLOSED] grid panel context menu items.
    By Prasoon in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Mar 02, 2015, 6:02 AM
  2. Replies: 1
    Last Post: Jun 27, 2014, 10:52 AM
  3. Replies: 2
    Last Post: Apr 04, 2014, 5:11 AM
  4. [CLOSED] Dynamic menu items in menu panel creation problem
    By legaldiscovery in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jan 10, 2013, 10:29 AM
  5. [CLOSED] GridFilter unchecked, but filter still applied
    By ecko in forum 1.x Legacy Premium Help
    Replies: 9
    Last Post: Mar 10, 2012, 2:35 PM

Posting Permissions