May 23, 2012, 9:31 AM
[CLOSED] Store Filter Not Updating Grid
Hi,
I'm having trouble getting a store filter to update my grid.
My store code:
Thanks.
EDIT: I should point out, the RowSelect event is firing from a second grid, not the one that I want to apply the filters to.
I'm having trouble getting a store filter to update my grid.
My store code:
<ext:Store runat="server" ID="storeClientEvidence" AutoLoad="false">
<Reader>
<ext:JsonReader Root="data">
<Fields>
<ext:RecordField Name="Id" />
<ext:RecordField Name="DocumentName" />
<ext:RecordField Name="AttacmentId" />
<ext:RecordField Name="ExpiresAfterMonths" />
<ext:RecordField Name="HasExpiryDate" />
<ext:RecordField Name="MaxEvidenceAgeMonths" />
<ext:RecordField Name="NeverExpires" />
<ext:RecordField Name="ProofOfBoth" />
<ext:RecordField Name="ProofOfAddress" />
<ext:RecordField Name="ProofOfName" />
<ext:RecordField Name="SortOrder" />
<ext:RecordField Name="Active" />
<ext:RecordField Name="Reference" />
<ext:RecordField Name="ClientAccountId" />
<ext:RecordField Name="DocumentExpiryDate" Type="Date" />
<ext:RecordField Name="DocumentIssuedDate" Type="Date" />
<ext:RecordField Name="DocumentSuppliedDate" Type="Date" />
<ext:RecordField Name="ModifiedBy" />
<ext:RecordField Name="ModifiedDate" Type="Date" />
</Fields>
</ext:JsonReader>
</Reader>
</ext:Store>
My filter code:<SelectionModel>
<ext:RowSelectionModel ID="RowSelectionModel2" runat="server" SingleSelect="true">
<Listeners>
<RowSelect Handler="var s = gridEvidenceSummary.getStore();s.clearFilter(true);s.filter('ClientAccountId', record.data.Id);" />
</Listeners>
</ext:RowSelectionModel>
</SelectionModel>
Whilst no error is thrown, the filter doesn't reflect on the grid rows at all. Am I doing something wrong?Thanks.
EDIT: I should point out, the RowSelect event is firing from a second grid, not the one that I want to apply the filters to.
Last edited by Daniil; May 23, 2012 at 3:48 PM.
Reason: [CLOSED]