Feb 09, 2011, 8:53 AM
Get filter string for Remote Filtering
I currently have this code for remote paging/sorting, I also want the server to return remotely fitlered datasets:
<ext:Store runat="server" ID="storeGridData" RemotePaging="true" RemoteSort="true"
RemoteGroup="true" IgnoreExtraFields="true" AutoLoad="false">
<BaseParams>
<ext:Parameter Name="filter" Value="" Mode="Value" />
<ext:Parameter Name="start" Value="={0}" />
<ext:Parameter Name="limit" Value="={10}" />
<ext:Parameter Mode="Raw" Name="cdRef" Value="#{txtCdRef}.getValue()" />
<ext:Parameter Mode="Raw" Name="cdDate" Value="#{dateCdDate}.getValue()" />
</BaseParams>
<Proxy>
<ext:HttpProxy Url="/Commission/GetSearchResults/" Method="POST" />
</Proxy>
<Reader>
<ext:JsonReader Root="data" TotalProperty="total">
<Fields>
<ext:RecordField Name="Id" />
<ext:RecordField Name="AutogenerateRef" />
<ext:RecordField Name="BankedAmount" />
<ext:RecordField Name="BankedDate" />
<ext:RecordField Name="BankRef" />
<ext:RecordField Name="CreatedByUserId" />
<ext:RecordField Name="DebitBalance" />
<ext:RecordField Name="Description" />
<ext:RecordField Name="MonthRef" />
<ext:RecordField Name="PaymentMethodId" />
<ext:RecordField Name="ReconciledByUserId" />
<ext:RecordField Name="ReconciledDate" />
<ext:RecordField Name="ReconciledStatus" />
</Fields>
</ext:JsonReader>
</Reader>
<SortInfo Field="Id" Direction="ASC" />
</ext:Store>
The part where I'm setting the BaseParams for the filter string.. I have no idea what to put in there; in a previous example I saw#{gridSearchResults}.GridFilters()
being used, but this doesnt work. How do I get the current filter (string, is it?) to pass to my controller action?