Hi There
I have a problem with GridBoundColumn ItemStyle as it does not behave like GridBoundColumn HeaderStyle. I have made this simple class to provide my own inherited version og GridBoundColumn:
using System.Web.UI.WebControls;
using Telerik.Web.UI;
I use the LWBooleanColumn like this:
When I use the VS 210 debugger, I can see that the HeaderStyle property is activated, but the ItemStyle property is left untouched.
Why is that ?
Thanks in advance for any tips...
Thomas, Copenhagen.
I have a problem with GridBoundColumn ItemStyle as it does not behave like GridBoundColumn HeaderStyle. I have made this simple class to provide my own inherited version og GridBoundColumn:
using System.Web.UI.WebControls;
using Telerik.Web.UI;
using System.Web.UI.WebControls;using Telerik.Web.UI;namespace LWTelerikGrid.Extenders.ColumnExtenders{ public class LWBooleanBoundColumn : GridBoundColumn { public override TableItemStyle HeaderStyle { get { TableItemStyle tableitemstyle = base.HeaderStyle; tableitemstyle.HorizontalAlign = HorizontalAlign.Center; return tableitemstyle; } } public override TableItemStyle ItemStyle { get { TableItemStyle tableitemstyle = base.ItemStyle; tableitemstyle.HorizontalAlign = HorizontalAlign.Center; return tableitemstyle; } } public override bool AutoPostBackOnFilter { get { return true; } } }}I use the LWBooleanColumn like this:
<LWColumnExtenders:LWBooleanBoundColumn DataField="LicenseRequired" DataType="System.Boolean" FilterControlAltText="Filter LicenseRequired column" HeaderText="LicenseRequired" SortExpression="LicenseRequired" UniqueName="LicenseRequired"></LWColumnExtenders:LWBooleanBoundColumn>When I use the VS 210 debugger, I can see that the HeaderStyle property is activated, but the ItemStyle property is left untouched.
Why is that ?
Thanks in advance for any tips...
Thomas, Copenhagen.