Hi Radzen,
Been trying to assign default values for grid fields/columns while inline editing the grid without success.
Would appreciate any help.
Hi Radzen,
Been trying to assign default values for grid fields/columns while inline editing the grid without success.
Would appreciate any help.
The default values are the values of the properties of the data item which is put in edit mode. For new records you can provide the values via the InsertRow method:
void InsertRow()
{
ordersGrid.InsertRow(new Order { PropName="Value" });
}
OK thanks, but let me rephrase that. is it possible to assign a value for a column in the model that is not shown in the grid while inline editing ? if yes, pls tell me how .
Thanks!
Before calling updateXXX method in the form submit event you can assign any property of the edited object using Execute action.
Thanks Vlad, would you care sharing a screenshot on how to do that in Radzen IDE.
Much appreciated!