Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
670
How do I persist a filtered Grid when using invokeXmlHttpRequest?
posted

I am using invokeXmlHttpRequest to send a refresh signal to the grid. I like doing this because the grid is part of a number of interrelated objects (grid/toolbar/listbar) and rather than reload the whole page I just want to refresh the grid data.

I have no problem generating the refresh command when the user presses a button on a toolbar (

oGrid.invokeXmlHttpRequest(oGrid.eReqType.Refresh,null,"");

).

However, if the user has applied a filter to the grid, the columnfilter retains its selected filter item, but the grid loses its filtered data set, and reloads the entire set.

What do I need to do to remind the grid that it has been filtered? Do I process the filters somehow during the XmlHTTPRequest event on the server?

Parents
No Data
Reply
  • 2254
    posted

    Hello,

    Can you intercept the Ajax call made by  oGrid.invokeXmlHttpRequest(oGrid.eReqType.Refresh,null,"") ?

    Like this: 

        

    protected void uwg_XmlHTTPRequest(object sender, XmlHTTPRequestEventArgs e)

       {

                 if (e.Type == XmlHTTPRequestType.Refresh)

                    {

                         ... filter the dataset

                    }

        }

Children
No Data