Filters are not affecting while reloading the Data in Grid panel

  1. #1

    Filters are not affecting while reloading the Data in Grid panel

    Hello,

    I am refreshing the grid panel after every 10 Seconds. But If user sets the filter to grid panel, Then it affects to current Data. but after refreshing the grid panel it shows all the data (i.e. Without applying filters). So can I set the filters to store/Data, which are already set to grid panel while reloading.

    So, Can anyone help me out of this problem.

    Thanks,
    Rahul Dhamale.
  2. #2
    Hi,

    Please set up Mode="Local" for the GridFilters or use remote filtering.
  3. #3

    Grid Filter issue after reloading data

    Hi,

    I have set the Local="true" property but same result.

    Because the server side grid filter event is the StoreRefreshDataEventArgs as per the example of

    https://examples1.ext.net/#/GridPane...ilters_Remote/

    And i am writing the code on Button event (i.e. DirectEverntArgs). I have apply the filters from server side. But for that, I have taken extra combo box.

    if (cmbFilter.SelectedItem.Text != "All")
    {
    taskRunList.RemoveAll(
    item =>
    {
    object oValue = item.GetType().GetProperty("status").GetValue(item , null);
    IComparable cItem = oValue as IComparable;
    return !oValue.ToString().Equals(cmbFilter.SelectedItem.T ext);
    }
    );
    }

    Regards,
    Rahul.
  4. #4
    Please ensure your code is wrapped in [CODE ] tags.
    Forum Guidelines For Posting New Topics

Similar Threads

  1. Fix Column Data Whiile Reloading the Grid
    By Rahul in forum 1.x Help
    Replies: 0
    Last Post: Mar 17, 2012, 6:42 AM
  2. Replies: 16
    Last Post: Feb 23, 2011, 11:03 AM
  3. Retieving Data from data base in the Grid Panel
    By Rakeshkumar.a in forum 1.x Help
    Replies: 0
    Last Post: Oct 13, 2010, 7:18 AM
  4. Replies: 5
    Last Post: Jul 10, 2010, 11:33 AM
  5. Reloading tree panel from code-behind
    By jpbelli in forum 1.x Help
    Replies: 1
    Last Post: Jan 29, 2009, 11:33 AM

Posting Permissions