EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: doev on December 09, 2013, 06:13:30 AM



Title: Custom Filter for Datagrid
Post by: doev on December 09, 2013, 06:13:30 AM
I need to filter a datagrid (fetches data from a remote server) in a complex way, wich means that the filter depends on some other elements from outside the datagrid. For example, on the selected rows of a second datagrid. What I need is a function, that is called when the datagrids reload is triggert, where I can pass the needed data to the request.

How can I start with this. Thx.


Title: Re: Custom Filter for Datagrid
Post by: doev on December 09, 2013, 06:31:04 AM
Solution:

$('#dg').datagrid('load', {
        data1: data1,
        data2: data2,
        data3: data3,
    });


How can I trigger it, always when a second datagrids selection changes?