Aug 03, 2009, 12:52 PM
In GridPanel, why column head's width is bigger than cell width?
Hi,
I'm a freshman of Coolite. I have 3 questions:
1.My Gridpanle's header width is bigger than cell, how can I adjust them to fit?(looks like in attachment)
2.The PagingToolBar doesn't show correct page count, by the way, I use Coolite with asp.net mvc 1.0, that's a reason? I have 11 recodes in database, and set pagesize 10, so I think pagingToolBar should show 2 pages, but infact it's not work. Are my codes error?
Thanks
I'm a freshman of Coolite. I have 3 questions:
1.My Gridpanle's header width is bigger than cell, how can I adjust them to fit?(looks like in attachment)
2.The PagingToolBar doesn't show correct page count, by the way, I use Coolite with asp.net mvc 1.0, that's a reason? I have 11 recodes in database, and set pagesize 10, so I think pagingToolBar should show 2 pages, but infact it's not work. Are my codes error?
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<ext:Store ID="Store1" runat="server">
<Proxy>
<ext:HttpProxy
Json="true"
AutoDataBind="true"
Url="AuditProject/ListAuditProjects"
>
</ext:HttpProxy>
</Proxy>
<Reader>
<ext:JsonReader>
<Fields>
<ext:RecordField Name="CompanyName" Type="String" />
<ext:RecordField Name="AuditYear" Type="Int" />
<ext:RecordField Name="ProjectType" Type="String"/>
<ext:RecordField Name="ProjectState" Type="String"/>
</Fields>
</ext:JsonReader>
</Reader>
<BaseParams>
<ext:Parameter Name="start" Value="0">
</ext:Parameter>
<ext:Parameter Name="limit" Value="10">
</ext:Parameter>
</BaseParams>
</ext:Store>
<ext:GridPanel
ID="GridPanel1"
runat="server"
StoreID="Store1"
Title="Project List"
StripeRows="true"
AutoDataBind="true"
Height="400px" BodyBorder="True" EnableHdMenu="False">
<ColumnModel runat="server" ID="ColumnModel1">
<Columns>
<ext:Column DataIndex="CompanyName" Header="Company Name" MenuDisabled="true">
</ext:Column>
<ext:Column DataIndex="AuditYear" Header="Year" MenuDisabled="true">
</ext:Column>
<ext:Column DataIndex="ProjectType" Header="Project Type" MenuDisabled="true">
</ext:Column>
<ext:Column DataIndex="ProjectState" Header="State" MenuDisabled="true">
</ext:Column>
</Columns>
</ColumnModel>
<BottomBar>
<ext:PagingToolBar ID="PagingToolBar1" runat="server" PageSize="10" StoreID="Store1" DisplayInfo="false" AutoDataBind="True" AutoShow="True" AutoHeight="True" />
</BottomBar>
<LoadMask ShowMask="true" />
</ext:GridPanel>
</asp:Content>
3.When I visit this page, usually jump a window tell me some error, why? And how can I fix it?(See attachment 2)Thanks