Feb 19, 2014, 9:46 AM
Pass all rows from GridPanel that have certain value in a specific column
I have a Ext GridPanel named sampleGrid, which has some column. one of them is named IsAssigned holding a bool value.
I have a ext button. when i click to it i want to pass all the row that has IsAssigned column value false.
i can pass all the grid rows, See below code sample,
isAssigned collum code:
I have a ext button. when i click to it i want to pass all the row that has IsAssigned column value false.
i can pass all the grid rows, See below code sample,
<ext:Button ID="btnSave" runat="server" Text="Save"
Icon="Accept">
<DirectEvents>
<Click OnEvent="btnSave_Click">
<ExtraParams>
<ext:Parameter Name="rows" Value="Ext.encode(#{sampleGrid}.getRowsValues())"
Mode="Raw" ></ext:Parameter>
</ExtraParams>
</Click>
</DirectEvents>
</ext:Button>
Here Ext.encode(#{sampleGrid}.getRowsValues()) will pass all the rows. but i want to pass only rows that has IsAssigned column value false.isAssigned collum code:
<ext:CheckColumn ColumnID="chkSelect" DataIndex="IsAssigned" MenuDisabled="true"
Sortable="true" Width="30px" Editable="true">
</ext:CheckColumn>
Any Help will be appreciated.
Last edited by rezoan; Feb 19, 2014 at 10:01 AM.