I have a WebDataGrid that has two modes. The first mode allows you to freely add and edit rows. The second mode makes certain columns of existing rows readonly, but allows you to freely edit new rows. I set the columns to readonly with serverside code during initialization like so:
Dim settingColumn As New EditingColumnSetting()settingColumn.ColumnKey = "Start_Date"settingColumn.ReadOnly = Truemygrid.Behaviors.EditingCore.Behaviors.CellEditing.ColumnSettings.Add(settingColumn)
I have javascript code that adds a new row, but the new row is readonly. Basically, I need to undo that server-side code for a new row. How can I make an entire row writable in javascript?
Hello selectdata,
If you have further questions let me know.
“readOnly” client property can be only get but not set on Client-Side - http://help.infragistics.com/Help/NetAdvantage/ASPNET/2011.2/CLR4.0/html/WebDataGrid~Infragistics.Web.UI.ColumnEditableSetting~readOnly.html
What you can do is to enable editing for the grid and then cancel “EnteringEditMode” Client event for the needed cells like shown here - http://community.infragistics.com/forums/t/19841.aspx