This question is locked. New answers and comments are not allowed.
Hi All,
In a Grid that is using a ClientRowTemplate there is a column bound for "Enabled". A boolean column in the model. In the ClientRowTemplate I would like to make the Enabled display a "Yes" or "No" and the Edit Popup form to use a checkbox as it is.
I created a wrapper property in the model of type string that is set in the set method of the class so the value is in use in the RowTemplate as "EnabledDisplay". Question is, given the template code below how can the Enabled property be formated in a "Yes" and "No" way or how can I hide "EnabledDisplay" (or any other field) from the Edit form?
Thanks,
Reid
In a Grid that is using a ClientRowTemplate there is a column bound for "Enabled". A boolean column in the model. In the ClientRowTemplate I would like to make the Enabled display a "Yes" or "No" and the Edit Popup form to use a checkbox as it is.
I created a wrapper property in the model of type string that is set in the set method of the class so the value is in use in the RowTemplate as "EnabledDisplay". Question is, given the template code below how can the Enabled property be formated in a "Yes" and "No" way or how can I hide "EnabledDisplay" (or any other field) from the Edit form?
.ClientRowTemplate(grid => "<div class='user-details'>" + "<h3 class='t-widget'><#= UserName #></h3>" + "<dl class='t-widget'>" + "<dt>Title:</dt><dd><#= Title #></dd>" + "<dt>Phone:</dt><dd><#= PhoneNumber #></dd>" + "</dl>" + "<dl>" + <dt>User Name:</dt><dd><#= UserName #></dd>" + "<dt>Email:</dt><dd><#= Email #></dd>" + "<dt>Enabled:</dt><dd><#= Enabled #></dd>" + "</dl>" + "<div class='commands'>" + grid.EditButton(null) + grid.DeleteButton(null) + "</div>" + "</div>")Thanks,
Reid