How to implement "IsReadOnly" for special cells

3 posts, 1 answers
  1. Marcus
    Marcus avatar
    35 posts
    Member since:
    Aug 2012

    Posted 22 Oct 2015 Link to this post

    Dear support,

    With GridViewDataColumn.IsReadOnly = false I can set all cells of one column to read/write. But how can I achieve this only for the leaves of every branch?

    Thanks in advance
    Marcus

  2. Answer
    Stefan Nenchev
    Admin
    Stefan Nenchev avatar
    280 posts

    Posted 23 Oct 2015 Link to this post

    Hello Marcus,

    It is possible to disable only certain cells from the RadGridView. Please refer to the following documentation page - CellStyleSelector. It will guide you on how to apply styles to cells based on custom logic. I am also attaching a small project that implements the scenario from the article but instead of changing the Background property I am defining the isEnabled property for each cell based on the stadium capacity.

    The following article provides another approach - Read Only Rows and Cells and there is a runnable project included which also can be of help.

    Please, update me if the information provided was useful. 

    Regards,
    Stefan Nenchev
    Telerik
    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 Feedback Portal and vote to affect the priority of the items
  3. UI for WPF is Visual Studio 2017 Ready
  4. Marcus
    Marcus avatar
    35 posts
    Member since:
    Aug 2012

    Posted 26 Oct 2015 in reply to Stefan Nenchev Link to this post

    Hello Stefan,

    this works fine. Thanks.

     

    Marcus

Back to Top