May 08, 2014, 7:25 AM
[FIXED] [#485] [3.2.0] Column.Locked = true prevents using tab for jumping
Hi All,
In this example you cannot use Tab for jumping between columns.
Is it designed behaviour?
If yes, how to make it to jump?
if you comment
System: Windows 7
Visual Studio 2013
Chrome
Ext.Net 2.5.1
In this example you cannot use Tab for jumping between columns.
Is it designed behaviour?
If yes, how to make it to jump?
if you comment
extCol.Locked = true;
it works fine.System: Windows 7
Visual Studio 2013
Chrome
Ext.Net 2.5.1
<%@ Page Language="C#" AutoEventWireup="true" %>
<!DOCTYPE html>
<script runat="server">
protected void Page_Load(object sender, EventArgs e)
{
if (!X.IsAjaxRequest)
{
var cb2 = new Ext.Net.TextField()
{
Selectable = true,
ReadOnly = false
};
var cb3 = new Ext.Net.TextField()
{
Selectable = true,
ReadOnly = false
};
var cb4 = new Ext.Net.TextField()
{
Selectable = true,
ReadOnly = false
};
model1.Fields.Add("Company");
model1.Fields.Add("Price1");
model1.Fields.Add("Price2");
model1.Fields.Add("Price3");
var extCol = new Ext.Net.Column();
extCol.ID = "1";
extCol.Text = "Conpany";
extCol.DataIndex = "Company";
extCol.Width = 250;
extCol.Locked = true; // - prevents using tab for jumping
GridPanel1.ColumnModel.Add(extCol);
var extCol2 = new Ext.Net.Column();
extCol2.ID = "2";
extCol2.Text = "Price1";
extCol2.DataIndex = "Price1";
extCol2.Width = 150;
extCol2.Editor.Add(cb2);
GridPanel1.ColumnModel.Add(extCol2);
var extCol3 = new Ext.Net.Column();
extCol3.ID = "3";
extCol3.Text = "Price2";
extCol3.DataIndex = "Price2";
extCol3.Width = 150;
extCol3.Editor.Add(cb3);
GridPanel1.ColumnModel.Add(extCol3);
var extCol4 = new Ext.Net.Column();
extCol4.ID = "4";
extCol4.Text = "Price3";
extCol4.DataIndex = "Price3";
extCol4.Width = 150;
extCol4.Editor.Add(cb4);
GridPanel1.ColumnModel.Add(extCol4);
var cmp = new List<CompanyClass>
{
new CompanyClass("3m Co", 71, 22, 55),
new CompanyClass("Alcoa Inc", 29, 42, 47),
};
this.Store1.DataSource = cmp;
this.Store1.DataBind();
}
}
public class CompanyClass
{
public CompanyClass(string name, double price, double change, double pctChange)
{
this.Company = name;
this.Price1 = price;
this.Price2 = change;
this.Price3 = pctChange;
}
public string Company { get;set; }
public double Price1 { get;set; }
public double Price2 { get; set; }
public double Price3 { get; set; }
}
</script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<ext:ResourceManager runat="server" />
<ext:Model runat="server" ID="model1" Name="model1">
</ext:Model>
<ext:Store ID="Store1" runat="server" ModelName="model1">
</ext:Store>
<ext:Viewport ID="Viewport1" runat="server" Layout="FitLayout">
<Items>
<ext:GridPanel
ID="GridPanel1"
runat="server"
StoreID="Store1"
Title="Company List"
Layout="BorderLayout">
<Plugins>
<ext:CellEditing ID="CellEditing1" runat="server" ClicksToEdit="1" ></ext:CellEditing>
</Plugins>
</ext:GridPanel>
</Items>
</ext:Viewport>
</div>
</form>
</body>
</html>
Thank you.
Last edited by Daniil; Jun 26, 2015 at 12:49 PM.
Reason: [FIXED] [#485] [3.2.0]