FineUI 官方论坛
标题:
Grid 的列宽不能手动拉宽
[打印本页]
作者:
xines
时间:
2012-11-6 03:17
标题:
Grid 的列宽不能手动拉宽
GRID的列宽不能手动拉宽, 直接 上代码,看出问题请指出,谢谢。
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="m_listinfo.ascx.cs" Inherits="UIWeb.control.mlistinfo" %>
<%@ Register Assembly="ExtAspNet" Namespace="ExtAspNet" TagPrefix="ext" %>
<ext
ageManager ID="
ageManager1" runat="server" />
<link href="../css/main.css" rel="stylesheet" type="text/css" />
<div >
<ext
ageManager ID="
ageManager2" runat="server" EnableAjax="true" />
<ext:HiddenField ID="hidstype" runat="server"></ext:HiddenField>
<ext
anel ID="
anel1" runat="server" BodyPadding="5px" EnableBackgroundColor="true"
ShowBorder="true" ShowHeader="true" Width="780px" Height="500px" Title="数据列表">
<Items>
<ext:Form ID="Form2" runat="server" Height="36px" BodyPadding="5px" ShowHeader="false"
ShowBorder="false" EnableBackgroundColor="true">
<Rows>
<ext:FormRow ID="FormRow1" runat="server">
<Items>
<ext
ropDownList ID="ddlfiled" runat="server" Label="查询字段"></ext
ropDownList>
<ext
ropDownList ID="ddlwhere" runat="server" Label="查询条件"></ext
ropDownList>
<ext:TwinTriggerBox ID="txt" runat="server" ShowLabel="false" EmptyText="关键字"
Trigger1Icon="Clear" Trigger2Icon="Search" ShowTrigger1="false" OnTrigger2Click="ttbSearchMessage_Trigger2Click"
OnTrigger1Click="ttbSearchMessage_Trigger1Click">
</ext:TwinTriggerBox>
</Items>
</ext:FormRow>
</Rows>
</ext:Form>
<ext:Grid ID="Grid1" Title="数据列表" AutoWidth="true" PageSize="15" ShowBorder="false"
ShowHeader="false" Height="460px" AllowPaging="true"
runat="server" EnableCheckBoxSelect="True" DataKeyNames="sid" AllowSorting="true"
EnableRowNumber="True" >
<Toolbars>
<ext:Toolbar ID="Toolbar1" runat="server">
<Items>
<ext:Button ID="btnNew" Text="新增数据" Icon="Add" runat="server">
</ext:Button>
</Items>
</ext:Toolbar>
</Toolbars>
<Columns>
<ext:HyperLinkField Width="80px" DataToolTipField="xnm" DataTextField="xnm" SortField="xnm" HeaderText="姓名"
DataNavigateUrlFields="sid" DataNavigateUrlFormatString="~/frmviewinfo.aspx?sid={0}" DataNavigateUrlFieldsEncode="true" Target="_blank" />
<ext:BoundField Width="100px" DataField="xyzbh" DataFormatString="{0}" SortField="xyzbh" HeaderText="鉴定证书编号" />
<ext:TemplateField Width="120px" HeaderText="状态" >
<ItemTemplate>
<asp
iteral ID="Literal1" runat="server" Text=<%#getstatus(Eval("xstatus").ToString())%>></asp
iteral>
</ItemTemplate>
</ext:TemplateField>
<ext:BoundField Width="120px" DataField="xmemo" DataFormatString="{0}" SortField="xmemo" HeaderText="备注" />
<ext:BoundField Width="120px" DataField="xmoney" DataFormatString="{0}" SortField="xmoney" HeaderText="收费类别" />
<ext:BoundField Width="50px" DataField="amoney" DataFormatString="{0}" SortField="amoney" HeaderText="收费金额" />
<ext:BoundField Width="50px" DataField="xsex" SortField="xsex" HeaderText="性别" />
<ext:BoundField Width="120px" DataField="xsch" SortField="xsch" HeaderText="毕业院校名称" />
<ext:BoundField Width="120px" DataField="xpro" DataFormatString="{0}" SortField="xpro" HeaderText="专业名称" />
<ext:BoundField Width="100px" DataField="xcode" DataFormatString="{0}" SortField="xcode" HeaderText="毕业证书编号" />
<ext:BoundField Width="50px" DataField="xyear" DataFormatString="{0}" HeaderText="毕业年份" />
<ext:BoundField Width="50px" DataField="xxl" DataFormatString="{0}" SortField="xxl" HeaderText="学历" />
<ext:BoundField Width="120px" DataField="xtel" DataFormatString="{0}" SortField="xtel" HeaderText="联系电话" />
<ext:BoundField Width="120px" DataField="xadd" DataFormatString="{0}" SortField="xadd" HeaderText="地址" />
<ext:BoundField Width="120px" DataField="auptime" DataFormatString="{0:yyyy-MM-dd hh:MM:ss}" HeaderText="提交时间" />
<ext:TemplateField Width="120px" HeaderText="所属代理" >
<ItemTemplate>
<asp
iteral ID="Literal2" runat="server" Text=<%#getcomp(Eval("acompany").ToString())%>></asp
iteral>
</ItemTemplate>
</ext:TemplateField>
<ext:BoundField Width="80px" DataField="auser" DataFormatString="{0}" SortField="auser" HeaderText="业务员" />
</Columns>
</ext:Grid>
<ext:Window ID="Window1" Title="编辑" Popup="false" EnableIFrame="true" runat="server"
CloseAction="HidePostBack" EnableConfirmOnClose="true" IFrameUrl="about:blank"
Target="Top" IsModal="True" Width="750px" Height="609px">
</ext:Window>
</Items>
</ext
anel>
</div>
<p>
</p>
作者:
xines
时间:
2012-11-6 03:18
<?xml version="1.0"?>
<configuration>
<configSections>
<section name="ExtAspNet" type="ExtAspNet.ConfigSection, ExtAspNet" requirePermission="false"/>
</configSections>
<ExtAspNet EnableBigFont="true" DebugMode="true"/>
<appSettings>
</appSettings>
<connectionStrings>
</connectionStrings>
<system.web>
<compilation debug="true" targetFramework="4.0" />
<customErrors mode="Off"/>
<membership>
<providers>
<clear/>
<add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="ApplicationServices"
enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false"
maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10"
applicationName="/" />
</providers>
</membership>
<profile>
<providers>
<clear/>
<add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="ApplicationServices" applicationName="/"/>
</providers>
</profile>
<roleManager enabled="false">
<providers>
<clear/>
<add name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider" connectionStringName="ApplicationServices" applicationName="/" />
<add name="AspNetWindowsTokenRoleProvider" type="System.Web.Security.WindowsTokenRoleProvider" applicationName="/" />
</providers>
</roleManager>
<pages enableSessionState="true" enableViewStateMac="true" enableEventValidation="false" controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID" viewStateEncryptionMode ="Never" >
<controls>
<add assembly="ExtAspNet" namespace="ExtAspNet" tagPrefix="ext"/>
</controls>
</pages>
<httpModules>
<add name="ExtAspNetScriptModule" type="ExtAspNet.ScriptModule, ExtAspNet"/>
</httpModules>
<httpHandlers>
<add verb="GET" path="res.axd" type="ExtAspNet.ResourceHandler, ExtAspNet"/>
</httpHandlers>
</system.web>
<system.webServer>
<modules runAllManagedModulesForAllRequests="true"/>
</system.webServer>
</configuration>
欢迎光临 FineUI 官方论坛 (https://fineui.com/BBS/)
Powered by Discuz! X3.4