Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
145
How do I set permission of a new row on the client?
posted

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 = True
mygrid.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?