Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
95
problem aligning itemtemplates
posted

hi !!

how do i top align the content of a TemplateDataField ?

ive tried everything but its always centered.

 

 

<ig:WebHierarchicalDataGrid ID="WebHierarchicalDataGridOversikt" runat="server" AutoGenerateBands="false" AutoGenerateColumns="false"

 

EnableAjax="true" InitialDataBindDepth="-1" InitialExpandDepth="-1" AjaxIndicator-ImageUrl="~/ig_res/ajax-loader.gif"

 

Height="100%" Width="758px" DataKeyFields="PK" ShowHeader="false" OnInitializeRow="Grid_InitRow" DataSourceID=""  >

 

<Columns>

 

<ig:BoundDataField Key="Dag" Header-Text="" DataFieldName="DAG" CssClass="Deloverskrift" />

 

</Columns>

 

<Bands>

 

<ig:Band Key="viewChild" AutoGenerateColumns="false" DataMember="view_Child" >

 

<Columns>

 

<ig:TemplateDataField Key="FIELD1" Width="50px" >

 

<ItemTemplate>

 

<asp:Label ID="del11" ReadOnly="true" runat="server" Width="50px" CssClass="Deloverskrift" /><br />

<%

-- <asp:Label ID="del12" ReadOnly="true" runat="server" />

<asp:Label ID="del13" ReadOnly="true" runat="server" />

--

 

%> </ItemTemplate>

 

</ig:TemplateDataField>

 

<ig:TemplateDataField Key="FIELD2" Width="500px">

 

<ItemTemplate>

 

<asp:Label ID="del21" ReadOnly="true" runat="server" CssClass="RadInnhold" /><br />

 

<asp:Label ID="del22A" ReadOnly="true" runat="server" CssClass="RadInnhold" />

 

<asp:HyperLink ID="del22" ReadOnly="true" runat="server" CssClass="RadInnhold" />

 

<asp:Panel ID="del23" ReadOnly="true" runat="server" CssClass="RadInnhold" />

 

<asp:HyperLink ID="del24" ReadOnly="true" runat="server" CssClass="RadInnhold" />

 

</ItemTemplate>

 

</ig:TemplateDataField>

 

<ig:TemplateDataField Key="FIELD3" Width="150px">

 

<ItemTemplate>

 

<asp:Label ID="del31" ReadOnly="true" runat="server" CssClass="RadInnhold" /><br />

 

<asp:Label ID="del32" ReadOnly="true" runat="server" CssClass="RadInnhold" />

 

<asp:Panel ID="del33" ReadOnly="true" runat="server" CssClass="RadInnhold" />

 

</ItemTemplate>

 

</ig:TemplateDataField>

 

</Columns>

 

<Behaviors>

 

<ig:Sorting SortingMode="Single" Enabled="true" />

 

</Behaviors>

 

</ig:Band>

 

</Bands>

 

<Behaviors>

 

<ig:Sorting SortingMode="Single" Enabled="true" />

 

</Behaviors>

 

</ig:WebHierarchicalDataGrid>

 


-->

 


-->


-->

 

Parents
No Data
Reply
  • 12025
    posted

    You can set the CSS class on the templatedatafield: 

    <ig:TemplateDataField Key="Freight" CssClass="igg_AlignColumn">

    And set the style as follows to affect the template area: 

    tbody tr td.igg_AlignColumn { vertical-align:top; }

    Hope this helps

    -Taz. 

Children
No Data