How do I change the control’s attribute in the form?
Call the following client API method in a client action handler:
DWKitApp.API.rewriteControlModel("controlName", gridModelRewriter);
where controlName
is the name of the control, and gridModelRewriter
is the function that changes the control model.
var gridModelRewriter = function (model) {
// TODO Change the model of the control
Model.parameter1 = value;
return model;
}
Read more about DWKit Global client API.