Hi
When adding a new row to a grid, using the Add new row button, what property should be set that prevents the user entering a value into a cell whose value is assigned / generated by the database, for example CustomerID ?
Thanks
Hi - got it..
Under editorOptions set disabled: true Thanks
HiThanks for this, now when the user Adds a new row the CustomerID cell is now set to read only, but the user can actually click on this cell and it appears to enter edit mode although you cannot enter data into it.Do you know how I can actually stop this cell appearing to enter edit mode?Thanks
If you're using the mvc wrapper like I am then this will work
features.Updating().ColumnSettings(settings =>
{
settings.ColumnSetting().ColumnKey("CustomerID").ReadOnly(true);
});