change cell readonly setting

2 posts, 0 answers
  1. Kevin Blanton
    Kevin Blanton avatar
    9 posts
    Member since:
    Sep 2012

    Posted 29 Mar 2010 Link to this post

    We are using the GirdView control to allow users to enter invoice charges.  The first col in the grid is a combo that allows the user the select a charge code.  Based on the selected code certain other items in the current row need to be set to readonly or disabled.

    For example, code ABC may be set up as a revenue code only.  This would allow the user to enter a rate and basis in the revenue columns, but the rate and basis for the cost columns would need to be locked or set to disabled.

    Is it possible to do this with the GridView control.


  2. Stefan Dobrev
    Stefan Dobrev avatar
    790 posts

    Posted 29 Mar 2010 Link to this post

    Hi Kevin Blanton,

    You can achieve this using BeginningEdit event of RadGridView. You can use the passed event arguments to check the state of your objects (e.Row.DataContext) and decide whether or not to cancel the editing (e.Cancel = true).

    Hope this helps,
    Stefan Dobrev
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Back to Top