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
265
Why doesn't the template column get added when Add new row is clicked
posted

 

<igtbl:TemplatedColumn Hidden="false" BaseColumnName="Add" Key="Add">
       <CellTemplate>
           <asp:ImageButton ID="btnAdd" runat="server" ImageUrl="~/images/Add.gif" OnClick="btnAdd_Click" />
        </CellTemplate>                                                  
</igtbl:TemplatedColumn>


I have this setup in the InitializeLayout


protected void UltraWebGrid1_Initializelayout(object sender, Infragistics.WebUI.UltraWebGrid.UltraGridEventArgs e)
{
 UltraWebGrid1.DisplayLayout.AddNewBox.Hidden = false;
        UltraWebGrid1.DisplayLayout.AllowAddNewDefault = Infragistics.WebUI.UltraWebGrid.AllowAddNew.Yes;
      
}


When I click on Add new row, except the templated column, all other bound columns get added. Any suggestions please


If I need to use the UltraWebGridColumn of Type="Button", then how to handle its server side event. Could anyone tell what is the server side event for Type Button