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
435
Footer not showing correctly
posted

HI

I'm using webdata grid and I have added footer template. But footer showing off the gird. Please suggest. I have added my HTML down too.


Thanks

Amit


<ig:WebDataGrid ID="WebDataGrid1" runat="server" AutoGenerateColumns ="False" Height="200px" Width="400px" ShowFooter="True"

OnLoad="WebDataGrid1_Load" EnableDataViewState="True" EnableAjax="false" >

<Columns>

<ig:TemplateDataField Key="TemplateField_1" Width="40%" >

<ItemTemplate>

<asp:Label runat="server" ID ="lbldivision" ><%# DataBinder.Eval(Container, "DataItem.Division")%> </asp:Label>

</ItemTemplate>

<FooterTemplate>

<asp:DropDownList ID="dropdownlist2" CssClass="font" runat="server" DataTextField="Diivison" DataValueField="Diivison"></asp:DropDownList>

</FooterTemplate>

<Footer Text ="Add new" ></Footer>

<Header Text="Division" ></Header>

</ig:TemplateDataField>

<ig:TemplateDataField Key="EditItem" Width="20px" Footer-ColSpan ="2">

<ItemTemplate>

<asp:ImageButton runat="server" ID="ImageButton2" AlternateText="Edit Item" Width="20px" ToolTip="Edit Item" ImageUrl="~/Images/edit.png" OnClientClick="DeleteRow(); return false;" />

</ItemTemplate>

<FooterTemplate>

<asp:Button runat="server" ID="butAdd" Text="Add New" OnClick="butAdd_Click" />

</FooterTemplate>

</ig:TemplateDataField>

<ig:TemplateDataField Key="DeleteItem" Width="20px">

<ItemTemplate>

<asp:ImageButton runat="server" ID="ImageButton1" AlternateText="Delete Item" ToolTip="Delete Item" Width="20px" ImageUrl="~/Images/delete32px.png" OnClientClick="DeleteRow(); return false;" />

</ItemTemplate>

</ig:TemplateDataField>

</Columns>

<Behaviors>

<ig:Selection ColumnSelectType="Single" Enabled="true" CellClickAction="Cell" SelectionClientEvents-CellSelectionChanged="WebDataGrid1_CellSelectionChanged" />

</Behaviors>

</ig:WebDataGrid>

Parents
  • 16310
    Offline posted

    Hello Amit,

    Thank you for posting in the Infragistics community. I have used the provided markup to add a template field to a WebDataGrid and it worked fine. I tested this with 14.2 under all major browsers (latest versions) and the grid renders fine. If this is a browser specific issue please clarify which browser has issues and the version you are using.

    Please review the attached sample and feel free to modify it in a way to reproduce the issue you are struggling with. Then you can send it back for investigation.

    Looking forward to hearing from you.

    WebDataGrid_TemplateFields.zip
Reply Children