Jul 20, 2018, 3:13 PM
[CLOSED] Grid column header is not showing when Text is EMPTY
Hi,
In Ext.Net 4.5 v, if grid has a single column and it's Text is empty, the header is NOT showing, what could be the reason and how to solve this? We need a clickable header with NO Text or Empty Text.
The same was worked in Ext.Net 2.5 version.
In Ext.Net 4.5 v, if grid has a single column and it's Text is empty, the header is NOT showing, what could be the reason and how to solve this? We need a clickable header with NO Text or Empty Text.
The same was worked in Ext.Net 2.5 version.
<%@ Page Language="C#" %>
<script runat="server">
protected void Page_Load(object sender, EventArgs e)
{
if (!X.IsAjaxRequest)
{
this.GridPanel1.Store.Primary.DataSource = new object[]
{
new object[] { true, DateTime.Now, 1 },
new object[] { false, DateTime.Now.AddDays(-1), 2 },
new object[] { true, DateTime.Now.AddDays(-2), 3 },
new object[] { false, DateTime.Now.AddDays(-3), 4 },
new object[] { true, DateTime.Now.AddDays(-4), 5 }
};
this.GridPanel1.Store.Primary.DataBind();
}
}
</script>
<!DOCTYPE html>
<html>
<head runat="server">
<title>Columns Variations - Ext.NET Examples</title>
<link href="/resources/css/examples.css" rel="stylesheet" />
</head>
<body>
<form runat="server">
<ext:ResourceManager runat="server" />
<ext:GridPanel
ID="GridPanel1"
runat="server"
Title="Column Variations"
DisableSelection="true"
Width="600"
Height="350">
<Store>
<ext:Store runat="server">
<Model>
<ext:Model runat="server">
<Fields>
<ext:ModelField Name="booleanCol" Type="Boolean" />
<ext:ModelField Name="dateCol" Type="Date" />
<ext:ModelField Name="numberCol" Type="Int" />
</Fields>
</ext:Model>
</Model>
</ext:Store>
</Store>
<ColumnModel runat="server" ColumnsText="Test">
<Columns>
<ext:Column runat="server" Text="" EmptyCellText="test">
</ext:Column>
</Columns>
</ColumnModel>
<View>
<ext:GridView runat="server" StripeRows="true" />
</View>
</ext:GridPanel>
</form>
</body>
</html>
Last edited by fabricio.murta; Sep 26, 2018 at 4:42 PM.