RenderCheckbox values should not be limited to Id property

7 months ago
Hi,

When we use RenderCheckBox in datatable  then we have to use Id as property to bind value because of then

case RenderCheckBox checkBox:
                    <text>
                    render: function (data, type, row, meta) {
                        return (data === 'true')
                            ? '<input name="@checkBox.Name" value="' + row.Id + '" type="checkbox" class="checkboxGroups" checked="checked" />'
                            : '<input name="@checkBox.Name" value="' + row.Id + '" type="checkbox" class="checkboxGroups" />';
                    },
                    </text>
                    break;
in _Table.Definition.cshtml.

I think, it should not be limited to Id property.
We are unable to use another model property to bind values in checkboxes.
There should be another parameter pass from RenederCheckBox to use in row.PropertyName.

What do you think?
6 months ago
Thanks a lot! I created a work item here.
5 months ago
Done. Please see this commit.