Oct 01, 2010, 6:20 PM
[CLOSED] How do i Set Focus On the first CheckBox Inside a GridPanel with a CheckBox Selection Model
How do i Set Focus On the first CheckBox Inside a GridPanel with a CheckBox Selection Model when a user Activate a tab?
I have a formPanel inside a tabPanel and wish to set focus on checkbox inside GridPanel, but the code below don´t work:
I have a formPanel inside a tabPanel and wish to set focus on checkbox inside GridPanel, but the code below don´t work:
<ext:FormPanel ID="frmPnlDocumentos" Title="Documentos" runat="server" Frame="true"
Disabled="true" AutoScroll="true" HideMode="Offsets">
<Listeners>
<Activate Handler="#{smGrdDocumentos}.focus();" />
</Listeners>
<Items>
<ext:FitLayout runat="server">
<Items>
<ext:GridPanel ID="grdDocumentos" runat="server" StoreID="StoreDocumentos" AutoExpandColumn="Descricao"
StripeRows="true">
<ColumnModel runat="server">
<Columns>
<ext:Column ColumnID="Sigla" Header="Sigla" Width="100" Sortable="true" DataIndex="Sigla" />
<ext:Column ColumnID="Descricao" Header="Descrição" Width="500" Sortable="true" DataIndex="Descricao" />
</Columns>
</ColumnModel>
<SelectionModel>
<ext:CheckboxSelectionModel ID="smGrdDocumentos" runat="server"/>
</SelectionModel>
<LoadMask ShowMask="true" />
<BottomBar>
<ext:PagingToolbar ID="pgnGrdDocumentos" runat="server" PageSize="10"
StoreID="StoreDocumentos" />
</BottomBar>
</ext:GridPanel>
</Items>
</ext:FitLayout>
</Items>
</ext:FormPanel>
Last edited by Daniil; Oct 04, 2010 at 4:15 PM.
Reason: [CLOSED]