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
615
RowEditTemplate and template fields not supported?
posted

Hi,

I'm trying to create a row edit template in combination with a template field. So I create two columns of which the first is a template column containing a checkbox, binded to a bool in the datasource. This is working perfectly. But when I add a RowEditTemplate, thing go wrong. First of all the template column isn't being created in the default row edit template, so I have to add it manually (as a checkbox) which isn't very difficult. At runtime however the template column is rendered incorrectly *after* the row edit template has been shown. The checkbox contains the correct value, but when I hit the "Ok" button, the value in the template column is replaced by the string "true" or "false" instead of the checkbox.

Is this a bug or I'm doing something wrong?

Parents
No Data
Reply
  • 14049
    Offline posted
    Hi,

    Unfortunately check box columns are not yet supported and the row edit
    template cannot actively update templated fields.
    I'd recommend removing the clientbinding for this column and do update
    manually on row edit template closing. You'd need to call set_value on
    the cell and find the check box in the cell's child elements and set its
    checked state accordingly.

    The check box columns are at the top of our priority list for the next
    version.

    Thanks.
Children