WebGrid columns not aligned with version 7.0.7200.405

8 replies. Last post: January 23, 2011 9:22 PM by Martin Lie
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback
paulredMember

With the 7.0.7200.405 version of the WebGrid, it appears that the columns are not alinging.

I tested with IE 6, Windows XP

A colleague of mine told me that with the WebGrid version 7.0.7200.405 the Grouping & hierarchical alignment was supposed to be resolved.

My page is using DOCTYPE XHTML 1.1

Below is a sample for a test grid.


<IsNet:WebGrid ID="OwGrid1" AutoFitColumns="false" AllowPaging="false"
runat="server" OnInitializeDataSource="Countries_InitializeDataSource" AllowColumnMoving="true" AllowGrouping="true" AllowSorting="true" HideColumnsWhenGrouped="false"
AllowFilter="true" GridMode ="Edit" EditOnClick="true" InProgressUIBehavior="ChangeCursorToHourGlass"
ResourceId="Label_Countries" UseDefaultStyle="true" DefaultStyleMode="Elegant">
<RootTable DataKeyField="CountryID">
<Columns>
<IsNet:WebGridColumn Name="CountryName" Caption="Name" DataMember="CountryName" GroupRowInfoFormat="Total by [caption] : [value] - Gross Premium: [sum(NetPremiumAndCommissionsAmount)] Net Premium: [sum(NetPremiumAmount)] Tax: [sum(TotalTaxAmount)] Commission: [sum(TotalCommission)]" Width="50" />
<IsNet:WebGridColumn Name="Ranking" GroupRowInfoFormat="Total by [caption] : [value] - Gross Premium: [sum(NetPremiumAndCommissionsAmount)] Net Premium: [sum(NetPremiumAmount)] Tax: [sum(TotalTaxAmount)] Commission: [sum(TotalCommission)]" Caption="Ranking" DataMember="Ranking" Width="80" />
<IsNet:WebGridColumn Name="Status" GroupRowInfoFormat="Total by [caption] : [value] - Gross Premium: [sum(NetPremiumAndCommissionsAmount)] Net Premium: [sum(NetPremiumAmount)] Tax: [sum(TotalTaxAmount)] Commission: [sum(TotalCommission)]" Caption="Status" DataMember="Status" Width="80" />
<IsNet:WebGridColumn Name="Population" GroupRowInfoFormat="Total by [caption] : [value] - Gross Premium: [sum(NetPremiumAndCommissionsAmount)] Net Premium: [sum(NetPremiumAmount)] Tax: [sum(TotalTaxAmount)] Commission: [sum(TotalCommission)]" Caption="Population" DataMember="Population" Width="80" />
<IsNet:WebGridColumn Name="CityCount" GroupRowInfoFormat="Total by [caption] : [value] - Gross Premium: [sum(NetPremiumAndCommissionsAmount)] Net Premium: [sum(NetPremiumAmount)] Tax: [sum(TotalTaxAmount)] Commission: [sum(TotalCommission)]" Caption="CityCount" DataMember="CityCount" Width="50" />
<IsNet:WebGridColumn Name="Race" GroupRowInfoFormat="Total by [caption] : [value] - Gross Premium: [sum(NetPremiumAndCommissionsAmount)] Net Premium: [sum(NetPremiumAmount)] Tax: [sum(TotalTaxAmount)] Commission: [sum(TotalCommission)]" Caption="Race" DataMember="Race" Width="50" />
<IsNet:WebGridColumn Name="Economy" GroupRowInfoFormat="Total by [caption] : [value] - Gross Premium: [sum(NetPremiumAndCommissionsAmount)] Net Premium: [sum(NetPremiumAmount)] Tax: [sum(TotalTaxAmount)] Commission: [sum(TotalCommission)]" Caption="Economy" DataMember="Economy" Width="50" />
<IsNet:WebGridColumn Name="Politics" GroupRowInfoFormat="Total by [caption] : [value] - Gross Premium: [sum(NetPremiumAndCommissionsAmount)] Net Premium: [sum(NetPremiumAmount)] Tax: [sum(TotalTaxAmount)] Commission: [sum(TotalCommission)]" Caption="Politics" DataMember="Politics" Width="50" />
<IsNet:WebGridColumn Name="TotalTax" GroupRowInfoFormat="Total by [caption] : [value] - Gross Premium: [sum(NetPremiumAndCommissionsAmount)] Net Premium: [sum(NetPremiumAmount)] Tax: [sum(TotalTaxAmount)] Commission: [sum(TotalCommission)]" Caption="TotalTax" DataMember="TotalTax" Width="50" />
<IsNet:WebGridColumn Name="Currency" GroupRowInfoFormat="Total by [caption] : [value] - Gross Premium: [sum(NetPremiumAndCommissionsAmount)] Net Premium: [sum(NetPremiumAmount)] Tax: [sum(TotalTaxAmount)] Commission: [sum(TotalCommission)]" Caption="Currency" DataMember="Currency" Width="50" />
<IsNet:WebGridColumn Name="Location" GroupRowInfoFormat="Total by [caption] : [value] - Gross Premium: [sum(NetPremiumAndCommissionsAmount)] Net Premium: [sum(NetPremiumAmount)] Tax: [sum(TotalTaxAmount)] Commission: [sum(TotalCommission)]" Caption="Location" DataMember="Location" Width="50" />
<IsNet:WebGridColumn Name="Reference" GroupRowInfoFormat="Total by [caption] : [value] - Gross Premium: [sum(NetPremiumAndCommissionsAmount)] Net Premium: [sum(NetPremiumAmount)] Tax: [sum(TotalTaxAmount)] Commission: [sum(TotalCommission)]" Caption="Reference" DataMember="Reference" Width="50" />
<IsNet:WebGridColumn Name="Capital" GroupRowInfoFormat="Total by [caption] : [value] - Gross Premium: [sum(NetPremiumAndCommissionsAmount)] Net Premium: [sum(NetPremiumAmount)] Tax: [sum(TotalTaxAmount)] Commission: [sum(TotalCommission)]" Caption="Capital" DataMember="Capital" Width="50" />
<IsNet:WebGridColumn Name="Sport" GroupRowInfoFormat="Total by [caption] : [value] - Gross Premium: [sum(NetPremiumAndCommissionsAmount)] Net Premium: [sum(NetPremiumAmount)] Tax: [sum(TotalTaxAmount)] Commission: [sum(TotalCommission)]" DataMember="Sport" Width="50" />
<IsNet:WebGridColumn Name="Creed" Caption="Creed" DataMember="Creed" Visible="false" Width="50" />
<IsNet:WebGridColumn Name="Leader" Caption="Leader" GroupRowInfoFormat="Total by [caption] : [value] - Gross Premium: [sum(NetPremiumAndCommissionsAmount)] Net Premium: [sum(NetPremiumAmount)] Tax: [sum(TotalTaxAmount)] Commission: [sum(TotalCommission)]" DataMember="Leader" Width="50" Visible="false" />
<IsNet:WebGridColumn Name="Type" GroupRowInfoFormat="Total by [caption] : [value] - Gross Premium: [sum(NetPremiumAndCommissionsAmount)] Net Premium: [sum(NetPremiumAmount)] Tax: [sum(TotalTaxAmount)] Commission: [sum(TotalCommission)]" Caption="Type" DataMember="Type" Width="50" Visible="false" />
<IsNet:WebGridColumn IsRowChecker="true" Name="RowChecker" />
</Columns>
</RootTable>
<LayoutSettings AllowFilter="Yes" AllowGrouping="Yes" GroupByBoxVisible = true AllowEdit="Yes" AllowSorting="Yes" AllowColumnSizing="Yes" PagingMode="ClassicPaging">
</LayoutSettings>
</IsNet:WebGrid>


.............................


protected void Countries_InitializeDataSource( object sender, DataSourceEventArgs e )
{
e.DataSource = GetCountries();
}

private List<TestCountry> GetCountries()
{
var country = new TestCountry() { CountryID = "1", CountryName = "Greece", Ranking = "1", Status = "Active", Population = "500000" };
var country2 = new TestCountry() { CountryID = "2", CountryName = "Kenya", Ranking = "2", Status = "Active", Population = "1340000" };
var country3 = new TestCountry() { CountryID = "3", CountryName = "Mali", Ranking = "3", Status = "Active", Population = "55550000" };
var country4 = new TestCountry() { CountryID = "4", CountryName = "Honduras", Ranking = "4", Status = "Active", Population = "333000" };
var country5 = new TestCountry() { CountryID = "5", CountryName = "Norway", Ranking = "5", Status = "Active", Population = "122100000" };

return new List<TestCountry>() { country, country2, country3, country4, country5 };
}


All times are GMT -5. The time now is 8:42 AM.
Previous Next