regarding to the post "http://www.telerik.com/forums/avoid-focus-on-radgridviewcolumn"
is there a possibility to disable the focus on a read only grid column? The property "Focusable" has no effect.
3 Answers, 1 is accepted
0
Accepted
Stefan
Telerik team
answered on 02 Jun 2015, 04:39 PM
Hi Simon ,
As there is no built-in functionality to achieve this, a possible approach would be to use the IsEnabled property of GridViewCell. For this purpose, you will need to define a Style and apply it through the CellStyle property of GridViewDataColumn:
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
How Can we achieve this in c# code, i am not creating the columns from xaml..
0
Stefan
Telerik team
answered on 16 Sep 2015, 04:09 PM
Hi Bharat,
The Style can be defined in XAML and then set programmatically through the CellStyle property of a given column. You can take a look at the code snippet below.
GridViewDataColumn col = new GridViewDataColumn()
{
CellStyle = this.Resources["disabledCellStyle"] as Style
};
Regards,
Stefan X1
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