I have a bound template column with a checkbox in it. ( Works OK for existing Rows )
/></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 ?
OK. If this is the case, then we will default the value to false for new rows. This still leaves us with one problem on this bit.
In the Edit Mode for cells if I hit the return key then it automatically causes the Exiting events to fire. With the Template Column this does not happen. I need to commit the row once the checkbox is clicked. As I cannot add a client side event in the markup, how can I add an onclick attribute to the Template checkbox control during page load. I'm not sure how to get to it through the grid hierarchy.
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