PDA

View Full Version : [CLOSED] AutoScroll problem



tobros
Jun 24, 2013, 6:44 AM
there is no scroll when page is load . when I scroll the mouse from up to down , then horizontal scroll bar show , but there is no The vertical scroll bar .
http://screencast.com/t/5nXQrNW4o1



<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="pingzhengluru1.aspx.cs" Inherits="TobrosCWT.pages.pingzheng.pingzhengluru1" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>凭证录入</title>
<link href="../../images/style.css" rel="stylesheet" />
<script type="text/javascript">
Ext.onReady(function () {
Ext.Date.dayNames = ['星期一', '星期二', '星期三', '星期四', '星期五', '星期六', '星期日']; // specify the correct text here

Ext.picker.Date.override({
dayNames: Ext.Date.dayNames
});
});
var edit = function (editor, e) {
/*
"e" is an edit event with the following properties:

grid - The grid
record - The record that was edited
field - The field name that was edited
value - The value being set
originalValue - The original value for the field, before the edit.
row - The grid table row
column - The grid Column defining the column that was edited.
rowIdx - The row index that was edited
colIdx - The column index that was edited
*/

// Call DirectMethod
if (e.value !== e.originalValue) {
// App.direct.Edit(e.record.data.ID, e.field, e.originalValue, e.value, e.record.data);
}
};

var rd_km = function (value) {
if (value != null && value != '') {
var r = App.ts_kemu.getNodeById(value);

if (Ext.isEmpty(r)) {
return "";
}

return r.data.text;
}

};

var docmd = function (item, command, record, recordIndex, cellIndex) {
if (command == "delete") {
// #{store_pz}.removeAt(recordIndex);
App.store_pz.removeAt(recordIndex);
}
if (command == "add") {
// #{store_pz}.insert(recordIndex-1,record);
App.store_pz.insert(recordIndex, {});
}
}
var removeFrom = function (win, countToRemove, totalCount) {
win = App[win];

var items = win.items;

Ext.suspendLayouts();
for (var i = 1; i <= countToRemove; i++) {
win.remove(items.getAt(totalCount - i));
}

Ext.resumeLayouts(true);

if (win.items.length > 0)
win.items.first().getBody().el.setVisible(true);
};
</script>
</head>
<body>
<form id="form1" runat="server">
<ext:ResourceManager ID="ResourceManager1" runat="server" Locale="zh-CN"></ext:ResourceManager>
<ext:DatePicker ID="DatePicker1" runat="server" />

<ext:Viewport ID="Viewport1" runat="server" Padding="10">
<Items>
<ext:Window runat="server" Width="320" ID="w_docwin" Hidden="True" Modal="True" Title="附件管理" Layout="AccordionLayout">
</ext:Window>
<ext:Button ID="Button1" runat="server" Text="刷新" Icon="ArrowRefresh" Cls="mr5">
<Listeners>
<Click Handler="window.location='pingzhengluru.aspx'">
</Click>
</Listeners>
</ext:Button>
<ext:Button ID="Button2" runat="server" Text="保存并新增" Cls="mr5" Icon="ApplicationAdd"></ext:Button>
<ext:Button ID="Button3" runat="server" Text="保存" Icon="TableSave"></ext:Button>
<ext:Panel ID="Panel1" Cls="pingzheng" runat="server">
<Items>
<ext:Panel ID="Panel2" runat="server" Layout="ColumnLayout" PaddingSpec="20px 20px;" Border="false">

<Items>
<ext:Panel ID="Panel3" runat="server" ColumnWidth=".4" Height="36" Layout="HBoxLayout" Border="false">
<Items>
<ext:Label ID="Label1" runat="server" Text="凭证字" Cls="mr5"></ext:Label>
<ext:ComboBox ID="cb_VouchClassCode" Editable="False" InputWidth="120" runat="server" DisplayField="VouchClassName" ValueField="VouchClassCode" Cls="mr5">
<Store>
<ext:Store runat="server" ID="store_VCC">
<Model>
<ext:Model ID="Model1" runat="server" IDProperty="VouchClassCode">
<Fields>
<ext:ModelField runat="server" Name="VouchClassCode"></ext:ModelField>
<ext:ModelField runat="server" Name="VouchClassName"></ext:ModelField>
</Fields>
</ext:Model>
</Model>

</ext:Store>
</Store>
<SelectedItems>
<ext:ListItem Index="0" />
</SelectedItems>
</ext:ComboBox>

<ext:NumberField ID="nf_VouchNo" InputWidth="60" LabelAlign="Right" runat="server" Cls="mr5">
</ext:NumberField>
<ext:Label ID="l_VouchNo" runat="server" Text="号" Cls="mr5"></ext:Label>
<ext:Label ID="Label3" runat="server" Text="日期" Cls="mr5"></ext:Label>
<ext:DateField ID="df_date" Format="yyyy-MM-dd" runat="server" InputWidth="90"></ext:DateField>
</Items>
</ext:Panel>
<ext:Panel ID="Panel4" runat="server" ColumnWidth=".2" StyleSpec="text-align:center;" Border="false">
<Items>
<ext:Label ID="Label4" runat="server" Text="记账凭证" StyleSpec="font-size:30px;"></ext:Label>
</Items>
</ext:Panel>

<ext:Panel CellCls="last-field" ID="Panel5" Height="36" runat="server" ColumnWidth=".4" StyleSpec="text-align:right;" Layout="HBoxLayout" Border="false">
<LayoutConfig>
<ext:HBoxLayoutConfig Pack="End" />
</LayoutConfig>
<Items>
<ext:Label ID="Label5" runat="server" Text="附单据" Cls="mr5"></ext:Label>
<ext:NumberField Icon="TextListNumbers" ID="nf_doc" runat="server" InputWidth="60" EmptyText="0">
<DirectEvents>
<IconClick OnEvent="e_doclick">
<ExtraParams>
<ext:Parameter Name="currentCount" Value="App.w_docwin.items.getCount()" Mode="Raw" />
</ExtraParams>
</IconClick>
</DirectEvents>

</ext:NumberField>

</Items>
</ext:Panel>

</Items>
</ext:Panel>
<ext:GridPanel runat="server" ID="gp_pingzheng" AutoScroll="True">

<Store>
<ext:Store runat="server" ID="store_pz">
<Model>
<ext:Model ID="Model2" runat="server">
<Fields>
<ext:ModelField runat="server" Name="Digest"></ext:ModelField>
<ext:ModelField runat="server" Name="Ccode"></ext:ModelField>
<ext:ModelField runat="server" Name="Jfje" Type="Int"></ext:ModelField>
<ext:ModelField runat="server" Name="Dfje" Type="Int"></ext:ModelField>
</Fields>
</ext:Model>
</Model>
</ext:Store>
</Store>
<ColumnModel>
<Columns>
<ext:SummaryColumn ID="Column1" runat="server" Text="摘要" DataIndex="Digest">
<SummaryRenderer Handler="return '合计:'"></SummaryRenderer>
<Editor>
<ext:TextField ID="TextField1" runat="server"></ext:TextField>
</Editor>
</ext:SummaryColumn>
<ext:Column ID="col_kjkm" runat="server" Text="会计科目" DataIndex="Ccode">
<Renderer Fn="rd_km"></Renderer>
<Editor>
<ext:DropDownField ID="ddf_kemu" runat="server" Mode="ValueText">
<Component>
<ext:TreePanel runat="server" ID="tp_subject" MaxHeight="400" Shadow="false" UseArrows="true" AutoScroll="true" Animate="true" RootVisible="false">
<View>
<ext:TreeView ID="TreeView1" runat="server" LoadMask="true" />
</View>
<Store>
<ext:TreeStore runat="server" ID="ts_kemu">

<Proxy>
<ext:AjaxProxy Url="~/BasicInfoAshx/SubjectTree.ashx">
</ext:AjaxProxy>
</Proxy>
</ext:TreeStore>
</Store>
<DirectEvents>
<ItemDblClick OnEvent="NodeDbClick">
<ExtraParams>
<ext:Parameter runat="server" Name="id" Value="record.data.id" Mode="Raw" />
<ext:Parameter runat="server" Name="text" Value="record.data.text" Mode="Raw" />
<ext:Parameter runat="server" Name="leaf" Value="record.data.leaf" Mode="Raw" />
</ExtraParams>
</ItemDblClick>
</DirectEvents>
</ext:TreePanel>
</Component>
</ext:DropDownField>
</Editor>
</ext:Column>

<ext:SummaryColumn SummaryType="Sum" ID="sc_jf" runat="server" Text="借方金额" DataIndex="Jfje">
<Renderer Handler="if(value!=null&&value!='')return value +'元';" />
<SummaryRenderer Handler=" if(value!=0&&value!=null)return value +'元';" />
<Editor>
<ext:NumberField ID="NumberField3" runat="server"></ext:NumberField>
</Editor>

</ext:SummaryColumn>
<ext:SummaryColumn SummaryType="Sum" ID="sc_df" runat="server" Text="贷方金额" DataIndex="Dfje">
<Renderer Handler="if(value!=null&&value!='')return value +'元';" />
<SummaryRenderer Handler="if(value!=0)return value +'元';" />
<Editor>
<ext:NumberField ID="NumberField4" runat="server"></ext:NumberField>
</Editor>
</ext:SummaryColumn>
<ext:Column runat="server" Text="借方金额">
<Columns>
<ext:NumberColumn runat="server" Text="亿"/>
<ext:NumberColumn runat="server" Text="千"/>
<ext:NumberColumn ID="NumberColumn1" runat="server" Text="百"/>
<ext:NumberColumn ID="NumberColumn2" runat="server" Text="十"/>
<ext:NumberColumn ID="NumberColumn3" runat="server" Text="万"/>
<ext:NumberColumn ID="NumberColumn4" runat="server" Text="千"/>
<ext:NumberColumn ID="NumberColumn5" runat="server" Text="百"/>
<ext:NumberColumn ID="NumberColumn6" runat="server" Text="十"/>
<ext:NumberColumn ID="NumberColumn7" runat="server" Text="个"/>
</Columns>
</ext:Column>
<ext:Column ID="Column2" runat="server" Text="贷方金额">
<Columns>
<ext:NumberColumn ID="NumberColumn8" runat="server" Text="亿"/>
<ext:NumberColumn ID="NumberColumn9" runat="server" Text="千"/>
<ext:NumberColumn ID="NumberColumn10" runat="server" Text="百"/>
<ext:NumberColumn ID="NumberColumn11" runat="server" Text="十"/>
<ext:NumberColumn ID="NumberColumn12" runat="server" Text="万"/>
<ext:NumberColumn ID="NumberColumn13" runat="server" Text="千"/>
<ext:NumberColumn ID="NumberColumn14" runat="server" Text="百"/>
<ext:NumberColumn ID="NumberColumn15" runat="server" Text="十"/>
<ext:NumberColumn ID="NumberColumn16" runat="server" Text="个"/>
</Columns>
</ext:Column>
<ext:CommandColumn ID="CommandColumn1" runat="server" Text="操作">
<Commands>
<ext:GridCommand Icon="Delete" CommandName="delete">
<ToolTip Text="删除"></ToolTip>
</ext:GridCommand>
<ext:CommandSeparator />
<ext:GridCommand Icon="Add" CommandName="add">
<ToolTip Text="新增"></ToolTip>
</ext:GridCommand>
</Commands>
<Listeners>
<Command Fn="docmd" />
</Listeners>
</ext:CommandColumn>
</Columns>
</ColumnModel>
<Features>
<ext:Summary ID="Summary1" runat="server" />
</Features>
<Plugins>
<ext:CellEditing ID="CellEditing1" runat="server">
<Listeners>
<Edit Fn="edit" />
</Listeners>
</ext:CellEditing>
</Plugins>
<Buttons>
<ext:Button runat="server" ID="btn_savenew" Text="保存并新增">
<DirectEvents>
<Click OnEvent="e_savenew" IsUpload="true" Before="
Ext.Msg.wait('正在操作中...', '处理中...');"
Failure="Ext.Msg.show({
title : 'Error',
msg : 'Error during uploading',
minWidth: 200,
modal : true,
icon : Ext.Msg.ERROR,
buttons : Ext.Msg.OK
});">
<ExtraParams>
<ext:Parameter Name="sum" Value="App.Summary1.summaryRecord.data" Mode="Raw" />
<ext:Parameter Name="Grid1" Value="Ext.encode(#{gp_pingzheng}.getRowsValues({selected Only : false}))" Mode="Raw" />
</ExtraParams>
</Click>
</DirectEvents>
</ext:Button>
<ext:Button runat="server" ID="btn_save" Text="保存">
<DirectEvents>
<Click OnEvent="e_save">
<ExtraParams>
<ext:Parameter Name="sum" Value="App.Summary1.summaryRecord.data" Mode="Raw" />
<ext:Parameter Name="Grid1" Value="Ext.encode(#{gp_pingzheng}.getRowsValues({selected Only : false}))" Mode="Raw" />
</ExtraParams>
</Click>
</DirectEvents>
</ext:Button>
</Buttons>
</ext:GridPanel>
</Items>
</ext:Panel>


</Items>
</ext:Viewport>
</form>
</body>
</html>

Daniil
Jun 24, 2013, 7:10 AM
Hi @tobros,

The GridPanel has no Width setting and no parent layout calculates its width, so, it has auto width, which contradicts the conditions of appearing a horizontal scrollbar. You might need to set up VBox or Anchor layout for the GridPanel's parent container. Maybe, you will also need to set up respective layouts up in the chain.

tobros
Jun 24, 2013, 8:48 AM
Hi @tobros,

The GridPanel has no Width setting and no parent layout calculates its width, so, it has auto width, which contradicts the conditions of appearing a horizontal scrollbar. You might need to set up VBox or Anchor layout for the GridPanel's parent container. Maybe, you will also need to set up respective layouts up in the chain.

I add a width to the grid panel , not work


<ext:GridPanel runat="server" ID="gp_pingzheng" AutoScroll="True" Width="900">


http://screencast.com/t/d133mBqXE

Daniil
Jun 24, 2013, 8:53 AM
Could you please provide a runnable test case to reproduce the problem? I am getting errors trying to run the example.

tobros
Jun 24, 2013, 10:17 AM
Could you please provide a runnable test case to reproduce the problem? I am getting errors trying to run the example.

example code


<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm3.aspx.cs" Inherits="TobrosCWT.pages.pingzheng.WebForm3" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>凭证录入</title>
<link href="../../images/style.css" rel="stylesheet" />
<script type="text/javascript">
Ext.onReady(function () {
Ext.Date.dayNames = ['星期一', '星期二', '星期三', '星期四', '星期五', '星期六', '星期日']; // specify the correct text here

Ext.picker.Date.override({
dayNames: Ext.Date.dayNames
});
});
var edit = function (editor, e) {
/*
"e" is an edit event with the following properties:

grid - The grid
record - The record that was edited
field - The field name that was edited
value - The value being set
originalValue - The original value for the field, before the edit.
row - The grid table row
column - The grid Column defining the column that was edited.
rowIdx - The row index that was edited
colIdx - The column index that was edited
*/

// Call DirectMethod
if (e.value !== e.originalValue) {
// App.direct.Edit(e.record.data.ID, e.field, e.originalValue, e.value, e.record.data);
}
};

var rd_km = function (value) {
if (value != null && value != '') {
var r = App.ts_kemu.getNodeById(value);

if (Ext.isEmpty(r)) {
return "";
}

return r.data.text;
}

};

var docmd = function (item, command, record, recordIndex, cellIndex) {
if (command == "delete") {
// #{store_pz}.removeAt(recordIndex);
App.store_pz.removeAt(recordIndex);
}
if (command == "add") {
// #{store_pz}.insert(recordIndex-1,record);
App.store_pz.insert(recordIndex, {});
}
}
var removeFrom = function (win, countToRemove, totalCount) {
win = App[win];

var items = win.items;

Ext.suspendLayouts();
for (var i = 1; i <= countToRemove; i++) {
win.remove(items.getAt(totalCount - i));
}

Ext.resumeLayouts(true);

if (win.items.length > 0)
win.items.first().getBody().el.setVisible(true);
};
</script>
</head>
<body>
<form id="form1" runat="server">
<ext:ResourceManager ID="ResourceManager1" runat="server" Locale="zh-CN"></ext:ResourceManager>
<ext:DatePicker ID="DatePicker1" runat="server" />

<ext:Viewport ID="Viewport1" runat="server" Padding="10">
<Items>
<ext:Window runat="server" Width="320" ID="w_docwin" Hidden="True" Modal="True" Title="附件管理" Layout="AccordionLayout">
</ext:Window>
<ext:Button ID="Button1" runat="server" Text="刷新" Icon="ArrowRefresh" Cls="mr5">
<Listeners>
<Click Handler="window.location='pingzhengluru.aspx'">
</Click>
</Listeners>
</ext:Button>
<ext:Button ID="Button2" runat="server" Text="保存并新增" Cls="mr5" Icon="ApplicationAdd"></ext:Button>
<ext:Button ID="Button3" runat="server" Text="保存" Icon="TableSave"></ext:Button>
<ext:Panel ID="Panel1" Cls="pingzheng" runat="server" >
<Items>
<ext:Panel ID="Panel2" runat="server" Layout="ColumnLayout" PaddingSpec="20px 20px;" Border="false">

<Items>
<ext:Panel ID="Panel3" runat="server" ColumnWidth=".4" Height="36" Layout="HBoxLayout" Border="false">
<Items>
<ext:Label ID="Label1" runat="server" Text="凭证字" Cls="mr5"></ext:Label>
<ext:ComboBox ID="cb_VouchClassCode" Editable="False" InputWidth="120" runat="server" DisplayField="VouchClassName" ValueField="VouchClassCode" Cls="mr5">
<Store>
<ext:Store runat="server" ID="store_VCC">
<Model>
<ext:Model ID="Model1" runat="server" IDProperty="VouchClassCode">
<Fields>
<ext:ModelField runat="server" Name="VouchClassCode"></ext:ModelField>
<ext:ModelField runat="server" Name="VouchClassName"></ext:ModelField>
</Fields>
</ext:Model>
</Model>

</ext:Store>
</Store>
<SelectedItems>
<ext:ListItem Index="0" />
</SelectedItems>
</ext:ComboBox>

<ext:NumberField ID="nf_VouchNo" InputWidth="60" LabelAlign="Right" runat="server" Cls="mr5">
</ext:NumberField>
<ext:Label ID="l_VouchNo" runat="server" Text="号" Cls="mr5"></ext:Label>
<ext:Label ID="Label3" runat="server" Text="日期" Cls="mr5"></ext:Label>
<ext:DateField ID="df_date" Format="yyyy-MM-dd" runat="server" InputWidth="90"></ext:DateField>
</Items>
</ext:Panel>
<ext:Panel ID="Panel4" runat="server" ColumnWidth=".2" StyleSpec="text-align:center;" Border="false">
<Items>
<ext:Label ID="Label4" runat="server" Text="记账凭证" StyleSpec="font-size:30px;"></ext:Label>
</Items>
</ext:Panel>

<ext:Panel CellCls="last-field" ID="Panel5" Height="36" runat="server" ColumnWidth=".4" StyleSpec="text-align:right;" Layout="HBoxLayout" Border="false">
<LayoutConfig>
<ext:HBoxLayoutConfig Pack="End" />
</LayoutConfig>
<Items>
<ext:Label ID="Label5" runat="server" Text="附单据" Cls="mr5"></ext:Label>
<ext:NumberField Icon="TextListNumbers" ID="nf_doc" runat="server" InputWidth="60" EmptyText="0">


</ext:NumberField>

</Items>
</ext:Panel>

</Items>
</ext:Panel>
<ext:GridPanel runat="server" ID="gp_pingzheng" AutoScroll="True" Width="900">

<Store>
<ext:Store runat="server" ID="store_pz">
<Model>
<ext:Model ID="Model2" runat="server">
<Fields>
<ext:ModelField runat="server" Name="Digest"></ext:ModelField>
<ext:ModelField runat="server" Name="Ccode"></ext:ModelField>
<ext:ModelField runat="server" Name="Jfje" Type="Int"></ext:ModelField>
<ext:ModelField runat="server" Name="Dfje" Type="Int"></ext:ModelField>
</Fields>
</ext:Model>
</Model>
</ext:Store>
</Store>
<ColumnModel>
<Columns>
<ext:SummaryColumn ID="Column1" runat="server" Text="摘要" DataIndex="Digest">
<SummaryRenderer Handler="return '合计:'"></SummaryRenderer>
<Editor>
<ext:TextField ID="TextField1" runat="server"></ext:TextField>
</Editor>
</ext:SummaryColumn>
<ext:Column ID="col_kjkm" runat="server" Text="会计科目" DataIndex="Ccode">
<Renderer Fn="rd_km"></Renderer>
<Editor>
<ext:DropDownField ID="ddf_kemu" runat="server" Mode="ValueText">
<Component>
<ext:TreePanel runat="server" ID="tp_subject" MaxHeight="400" Shadow="false" UseArrows="true" AutoScroll="true" Animate="true" RootVisible="false">
<View>
<ext:TreeView ID="TreeView1" runat="server" LoadMask="true" />
</View>
<Store>
<ext:TreeStore runat="server" ID="ts_kemu">

<Proxy>
<ext:AjaxProxy Url="~/BasicInfoAshx/SubjectTree.ashx">
</ext:AjaxProxy>
</Proxy>
</ext:TreeStore>
</Store>

</ext:TreePanel>
</Component>
</ext:DropDownField>
</Editor>
</ext:Column>

<ext:SummaryColumn SummaryType="Sum" ID="sc_jf" runat="server" Text="借方金额" DataIndex="Jfje">
<Renderer Handler="if(value!=null&&value!='')return value +'元';" />
<SummaryRenderer Handler=" if(value!=0&&value!=null)return value +'元';" />
<Editor>
<ext:NumberField ID="NumberField3" runat="server"></ext:NumberField>
</Editor>

</ext:SummaryColumn>
<ext:SummaryColumn SummaryType="Sum" ID="sc_df" runat="server" Text="贷方金额" DataIndex="Dfje">
<Renderer Handler="if(value!=null&&value!='')return value +'元';" />
<SummaryRenderer Handler="if(value!=0)return value +'元';" />
<Editor>
<ext:NumberField ID="NumberField4" runat="server"></ext:NumberField>
</Editor>
</ext:SummaryColumn>
<ext:Column ID="Column2" runat="server" Text="借方金额">
<Columns>
<ext:NumberColumn ID="NumberColumn1" runat="server" Text="亿"/>
<ext:NumberColumn ID="NumberColumn2" runat="server" Text="千"/>
<ext:NumberColumn ID="NumberColumn3" runat="server" Text="百"/>
<ext:NumberColumn ID="NumberColumn4" runat="server" Text="十"/>
<ext:NumberColumn ID="NumberColumn5" runat="server" Text="万"/>
<ext:NumberColumn ID="NumberColumn6" runat="server" Text="千"/>
<ext:NumberColumn ID="NumberColumn7" runat="server" Text="百"/>
<ext:NumberColumn ID="NumberColumn8" runat="server" Text="十"/>
<ext:NumberColumn ID="NumberColumn9" runat="server" Text="个"/>
</Columns>
</ext:Column>
<ext:Column ID="Column3" runat="server" Text="贷方金额">
<Columns>
<ext:NumberColumn ID="NumberColumn10" runat="server" Text="亿"/>
<ext:NumberColumn ID="NumberColumn11" runat="server" Text="千"/>
<ext:NumberColumn ID="NumberColumn12" runat="server" Text="百"/>
<ext:NumberColumn ID="NumberColumn13" runat="server" Text="十"/>
<ext:NumberColumn ID="NumberColumn14" runat="server" Text="万"/>
<ext:NumberColumn ID="NumberColumn15" runat="server" Text="千"/>
<ext:NumberColumn ID="NumberColumn16" runat="server" Text="百"/>
<ext:NumberColumn ID="NumberColumn17" runat="server" Text="十"/>
<ext:NumberColumn ID="NumberColumn18" runat="server" Text="个"/>
</Columns>
</ext:Column>
<ext:CommandColumn ID="CommandColumn1" runat="server" Text="操作">
<Commands>
<ext:GridCommand Icon="Delete" CommandName="delete">
<ToolTip Text="删除"></ToolTip>
</ext:GridCommand>
<ext:CommandSeparator />
<ext:GridCommand Icon="Add" CommandName="add">
<ToolTip Text="新增"></ToolTip>
</ext:GridCommand>
</Commands>
<Listeners>
<Command Fn="docmd" />
</Listeners>
</ext:CommandColumn>
</Columns>
</ColumnModel>
<Features>
<ext:Summary ID="Summary1" runat="server" />
</Features>
<Plugins>
<ext:CellEditing ID="CellEditing1" runat="server">
<Listeners>
<Edit Fn="edit" />
</Listeners>
</ext:CellEditing>
</Plugins>
<Buttons>
<ext:Button runat="server" ID="btn_savenew" Text="保存并新增">

</ext:Button>
<ext:Button runat="server" ID="btn_save" Text="保存">

</ext:Button>
</Buttons>
</ext:GridPanel>
</Items>
</ext:Panel>


</Items>
</ext:Viewport>
</form>
</body>
</html>

Daniil
Jun 24, 2013, 1:21 PM
Thank you.

This is actual for the GridPanel's height as well.

The GridPanel has no Width setting and no parent layout calculates its width

I would try to set up MinHeight for GridPanel or configure its parent layouts to get its height calculated.