This is a migrated thread and some comments may be shown as answers.

How to implement "IsReadOnly" for special cells

2 Answers 36 Views
TreeListView
This is a migrated thread and some comments may be shown as answers.
Marcus
Top achievements
Rank 1
Marcus asked on 22 Oct 2015, 10:39 AM

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 Answers, 1 is accepted

Sort by
0
Accepted
Stefan Nenchev
Telerik team
answered on 23 Oct 2015, 07:52 AM
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
0
Marcus
Top achievements
Rank 1
answered on 26 Oct 2015, 10:28 AM

Hello Stefan,

this works fine. Thanks.

 

Marcus

Tags
TreeListView
Asked by
Marcus
Top achievements
Rank 1
Answers by
Stefan Nenchev
Telerik team
Marcus
Top achievements
Rank 1
Share this question
or