Aug 02, 2012, 7:22 AM
[CLOSED] Tab Sequence Problem
Hi,
I'am getting problem with tab sequencing, Gridpanel cell is not getting focus when tab key is pressed , how can i get the focus on gridpanel
first cell when tab is pressed from text field1, and also how to tab out from the last cell of the panel.
I'am getting problem with tab sequencing, Gridpanel cell is not getting focus when tab key is pressed , how can i get the focus on gridpanel
first cell when tab is pressed from text field1, and also how to tab out from the last cell of the panel.
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TabTesting.aspx.cs" Inherits="Web.Accounting.TabTesting" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<script runat="server">
protected void Page_Load(object sender, EventArgs e)
{
if (!X.IsAjaxRequest)
{
StoreTest.DataSource = new object[] {
new object[] { "A1", "B1", "C1" },
new object[] { "A2", "B2", "C2" },
new object[] { "A3", "B3", "C3" },
};
StoreTest.DataBind();
}
}
</script>
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div >
<ext:ResourceManager ID="ResourceManager1" runat="server" />
<ext:TextField ID="txt" runat="server" FieldLabel="Field1" TabIndex="1" />
<ext:GridPanel TabIndex="2" ColumnLines="true" Width="500" runat="server" ID="GridPanel_RequisitionSlip"
AutoFocus="true" SortableColumns="false">
<View>
<ext:GridView ID="GridView_RequisitionSlip" runat="server" StripeRows="true" TrackOver="false">
</ext:GridView>
</View>
<SelectionModel>
<ext:CellSelectionModel runat="server" SingleSelect="true" ID="TestRowSelectionModel" />
</SelectionModel>
<Store>
<ext:Store ID="StoreTest" runat="server" WarningOnDirty="false">
<Model>
<ext:Model ID="StoreTestModel" IDProperty="" runat="server">
<Fields>
<ext:ModelField Name="A" Type="String" />
<ext:ModelField Name="B" Type="String" />
<ext:ModelField Name="C" Type="String" />
</Fields>
</ext:Model>
</Model>
</ext:Store>
</Store>
<ColumnModel ID="ColumnModel_RequisitionSlip" runat="server">
<Columns>
<ext:Column ID="ColA" runat="server" Text="A" DataIndex="A" Width="191" />
<ext:Column ID="ColB" runat="server" Text="B" DataIndex="B" Width="100" />
<ext:Column ID="ColC" runat="server" Text="C" DataIndex="C" />
<ext:CommandColumn ID="Column_SiteQuantity" runat="server" Width="25" Align="Left">
<Commands>
<ext:GridCommand Icon="Table" CommandName="SiteQuantityDisplay" />
</Commands>
</ext:CommandColumn>
</Columns>
</ColumnModel>
</ext:GridPanel>
</div>
</form>
</body>
</html>
Last edited by Daniil; Aug 07, 2012 at 4:59 AM.
Reason: [CLOSED]