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
70
Disable Cell Selection for Entire Column
posted

Hi,

 I am building a WebGrid where a user will select a cell which will correlate to a "width x height" dimension.  The columns of the WebGrid represent Width and the Rows represent height.  My first column holds the height values.  I do not want the user to be able to select the cells in the first column.  Is there anyway to disable cell or column selection/activation?

Thanks

Brent

Parents
  • 5118
    posted

    Hi Brent,

    You can handle the WebGrid's BeforeCellChangeHandler on the client side and identify the column the cell belongs to and cancel the action if the column should not allow the change to take place, similar to the following: 

    function UltraWebGrid1_BeforeCellChangeHandler(gridName, cellId){

    var cell = igtbl_getCellById(cellId);

        if (cell.Column.Key == "Col0"){

            return true;

        }

    }

Reply Children