May 06, 2009, 11:43 AM
gridpanel row deselect on ext window close
I have a gridpanel that on row select opens an ext window.
When the window closes the row is still selected and if you click the row a second time the window does not re-open.
I need to reset the gridpanel after the window closes or make the row available to be reselected.
When the window closes the row is still selected and if you click the row a second time the window does not re-open.
I need to reset the gridpanel after the window closes or make the row available to be reselected.
<ext:GridPanel ID="gp1" runat="server" Border="true" StoreID="stGroup1" StripeRows="true" Height="165" AutoExpandColumn="myCol">
<ColumnModel ID="cmGroup1" runat="server">
<Columns>
<ext:Column ColumnID="Proc_Name" DataIndex="Proc_Name" Header="Procedure" Width="200" Sortable="true" />
<ext:Column ColumnID="Proc_Note" DataIndex="Proc_Note" Header="Procedure Note" Width="100" Sortable="true" />
<ext:Column ColumnID="MyCount" DataIndex="MyCount" Header="My Count" Width="70" Sortable="true" />
<ext:CheckColumn ColumnID="Active" DataIndex="Active" Header="Active" Width="50" />
</Columns>
</ColumnModel>
<BottomBar>
<ext:PagingToolBar ID="PagingToolBar1" runat="server" PageSize="5" StoreID="stGroup1" />
</BottomBar>
<LoadMask ShowMask="true" />
<SelectionModel>
<ext:RowSelectionModel ID="rsmEditProc" runat="server" >
<AjaxEvents>
<RowSelect Failure="Ext.MessageBox.alert('Load failed', 'Error during ajax event!');" >
<EventMask ShowMask="true" Target="CustomTarget" CustomTarget="#{winProcDetails}" />
<ExtraParams>
<ext:Parameter Name="ProcID" Value="this.getSelected().get('ProcID')" Mode="Raw" />
</ExtraParams>
</RowSelect>
</AjaxEvents>
<Listeners>
<RowSelect Handler="#{winProcDetails}.show();" />
</Listeners>
</ext:RowSelectionModel>
</SelectionModel>
</ext:GridPanel>