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
1106
Template Columns and Adding a new row.
posted

I have a bound template column with a checkbox in it.  ( Works OK for existing Rows )

 

 

 

 

 

 

 

<ig:TemplateDataField Key="ControlInPlace" Width="20px"><ItemTemplate>

 

 

<asp:CheckBox ID="chkControlInPlace" runat="server" Checked='<%# DataBinder.Eval(((Infragistics.Web.UI.TemplateContainer)Container).DataItem, "ControlInPlace")%>'

/></ItemTemplate><Header Text="InP" /></ig:TemplateDataField>

But when I click in the cell of the Add New Row Row, in that colum, it does not give me the checkbox. In face it does nothinng.

What am I missing ?

Parents
No Data
Reply
  • 33839
    Suggested Answer
    posted

    Hi soberly,

    A template data field is not actually bound to the data source, so the add row is not editable for templated fields.  You would have to edit the html on the client for the add row to have a checkbox and also have a hidden field on the grid for that field.  You then would have to edit the value of the hidden add cell when the checkbox is clicked.

    Alternatively, in 11.1, we are coming out with a Bound checkbox field.

    regards,

    David Young

Children