I have dynamically generated columns, at runtime on the client side I need to determine if the column (or the cell) is ReadOnly. This value was set on the EditingColumnSetting in the code behind as all columns are generated on the server. (none in markup). How do I do this?
Hi David,
I am facing the same issue and I can not able to resolve this problem in different scenerio. The scenerio is as follows.
I am creating 10 columns dynamically at the run time with the Width="100%" and Height="75%".
First time it is displaying all the columns with the correct width.
The issue is when I am clicking the button I am hidding 3 columns in the client side.
Now, the grid of the display is shrinked.
I have attached a html code along with the two screen shots for reference.
And after hidding the certain columns why the grid is shrinked?
Kindly help me to solve this problem as soon as possible.
Hi aranm,
What you will want to do is get the column key of the cell. cell.get_column().get_key(). Then, find the column setting of the cell editing behavior using that key and see if it has get_readOnly() true. This should be what you want.
regards,David Young